Add perf sample with view creation.