• Home
  • Raw
  • Download

Lines Matching refs:bench

148 bool Target::init(SkImageInfo info, Benchmark* bench) {  in init()  argument
196 bool init(SkImageInfo info, Benchmark* bench) override { in init()
237 static double time(int loops, Benchmark* bench, Target* target) { in time() argument
242 bench->preDraw(canvas); in time()
245 bench->draw(loops, canvas); in time()
251 bench->postDraw(canvas); in time()
319 static int setup_cpu_bench(const double overhead, Target* target, Benchmark* bench) { in setup_cpu_bench() argument
323 int loops = bench->calculateLoops(FLAGS_loops); in setup_cpu_bench()
328 bench->getUniqueName(), HUMANIZE(bench_plus_overhead), HUMANIZE(overhead)); in setup_cpu_bench()
331 bench_plus_overhead = time(1, bench, target); in setup_cpu_bench()
363 static int setup_gpu_bench(Target* target, Benchmark* bench, int maxGpuFrameLag) { in setup_gpu_bench() argument
365 int loops = bench->calculateLoops(FLAGS_loops); in setup_gpu_bench()
379 elapsed = time(loops, bench, target); in setup_gpu_bench()
396 time(loops, bench, target); in setup_gpu_bench()
499 static Target* is_enabled(Benchmark* bench, const Config& config) { in is_enabled() argument
500 if (!bench->isSuitableFor(config.backend)) { in is_enabled()
504 SkImageInfo info = SkImageInfo::Make(bench->getSize().fX, bench->getSize().fY, in is_enabled()
520 if (!target->init(info, bench)) { in is_enabled()
684 std::unique_ptr<Benchmark> bench; in next() local
686 bench.reset(this->rawNext()); in next()
687 if (!bench) { in next()
692 return bench.release(); in next()
697 Benchmark* bench = fBenches->factory()(nullptr); in rawNext() local
701 return bench; in rawNext()
1212 std::unique_ptr<Benchmark> bench(b); in main() local
1213 if (SkCommandLineFlags::ShouldSkip(FLAGS_match, bench->getUniqueName())) { in main()
1218 log->bench(bench->getUniqueName(), bench->getSize().fX, bench->getSize().fY); in main()
1219 bench->delayedSetup(); in main()
1238 , bench->getUniqueName() in main()
1246 bench->perCanvasPreDraw(canvas); in main()
1250 ? setup_gpu_bench(target, bench.get(), maxFrameLag) in main()
1251 : setup_cpu_bench(overhead, target, bench.get()); in main()
1257 samples.push_back(time(loops, bench.get(), target) / loops); in main()
1262 samples[s] = time(loops, bench.get(), target) / loops; in main()
1272 bench->getGpuStats(canvas, &keys, &values); in main()
1276 bench->perCanvasPostDraw(canvas); in main()
1281 pngFilename = SkOSPath::Join(pngFilename.c_str(), bench->getUniqueName()); in main()
1294 log->configOption("name", bench->getName()); in main()
1320 , bench->getUniqueName() in main()
1329 stats.median*1e3, mark, bench->getUniqueName(), config); in main()
1339 , bench->getUniqueName() in main()
1355 , bench->getUniqueName() in main()
1373 SkDebugf("%s\n", bench->getUniqueName()); in main()
1381 log->bench("memory_usage", 0,0); in main()