diff options
Diffstat (limited to 'chromium/cc/animation/animation_host_perftest.cc')
-rw-r--r-- | chromium/cc/animation/animation_host_perftest.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/chromium/cc/animation/animation_host_perftest.cc b/chromium/cc/animation/animation_host_perftest.cc index 3bd25688d50..b9926f42d6e 100644 --- a/chromium/cc/animation/animation_host_perftest.cc +++ b/chromium/cc/animation/animation_host_perftest.cc @@ -17,7 +17,7 @@ #include "cc/test/stub_layer_tree_host_single_thread_client.h" #include "cc/test/test_task_graph_runner.h" #include "testing/gtest/include/gtest/gtest.h" -#include "testing/perf/perf_test.h" +#include "testing/perf/perf_result_reporter.h" namespace cc { @@ -120,7 +120,7 @@ class AnimationHostPerfTest : public testing::Test { all_animations_timeline_->GetAnimationById(i)->SetNeedsPushProperties(); } - void DoTest() { + void DoTest(const std::string& test_name) { timer_.Reset(); do { // Invalidate dirty flags. @@ -130,8 +130,9 @@ class AnimationHostPerfTest : public testing::Test { timer_.NextLap(); } while (!timer_.HasTimeLimitExpired()); - perf_test::PrintResult("push_properties_to", "", "", timer_.LapsPerSecond(), - "runs/s", true); + perf_test::PerfResultReporter reporter("push_properties_to", test_name); + reporter.RegisterImportantMetric("", "runs/s"); + reporter.AddResult("", timer_.LapsPerSecond()); } private: @@ -155,17 +156,17 @@ class AnimationHostPerfTest : public testing::Test { TEST_F(AnimationHostPerfTest, Push1000AnimationsPropertiesTo) { CreateAnimations(1000); - DoTest(); + DoTest("Push1000AnimationsPropertiesTo"); } TEST_F(AnimationHostPerfTest, Push10TimelinesPropertiesTo) { CreateTimelines(10); - DoTest(); + DoTest("Push10TimelinesPropertiesTo"); } TEST_F(AnimationHostPerfTest, Push1000TimelinesPropertiesTo) { CreateTimelines(1000); - DoTest(); + DoTest("Push1000TimelinesPropertiesTo"); } } // namespace cc |