Home | History | Annotate | Download | only in tools

Lines Matching refs:Bench

39     struct Bench {
44 std::vector<Bench> benches;
47 std::unique_ptr<Benchmark> bench{ r->factory()(nullptr) };
49 std::string name = bench->getName();
51 bench->isSuitableFor(Benchmark::kNonRendering_Backend)) {
52 bench->delayedSetup();
53 benches.emplace_back(Bench{std::move(bench), name,
59 SkDebugf("No bench matched.\n");
73 for (auto& bench : benches) {
74 bench.name.replace(0, common_prefix, kEllipsis);
87 for (auto& bench : benches) {
88 bench.name.replace(bench.name.size() - common_suffix, common_suffix, kEllipsis);
98 for (auto& bench : benches) {
100 bench.b->preDraw(nullptr);
102 bench.b->draw(loops, nullptr);
104 bench.b->postDraw(nullptr);
111 bench.best = std::min(bench.best, elapsed / loops);