diff options
author | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-19 22:43:24 +0000 |
---|---|---|
committer | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-19 22:43:24 +0000 |
commit | 82b216a03e576343587dea5ca953b3797588bf39 (patch) | |
tree | 163c72a45ccac2bed967061dc6891b4e6fa3a745 /cc/resources/task_graph_runner_perftest.cc | |
parent | d4be619e42fda756d8f1ff26a1b2970aaca7c2d0 (diff) | |
download | chromium_src-82b216a03e576343587dea5ca953b3797588bf39.zip chromium_src-82b216a03e576343587dea5ca953b3797588bf39.tar.gz chromium_src-82b216a03e576343587dea5ca953b3797588bf39.tar.bz2 |
cc: Added modifier string to clarify perf tests.
A few perf tests were writing results against the same measurement name making it impossible to distinguish and compare measurements. This patch adds modifier strings to make the measurments clear.
BUG=343684
Review URL: https://codereview.chromium.org/167753003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252118 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources/task_graph_runner_perftest.cc')
-rw-r--r-- | cc/resources/task_graph_runner_perftest.cc | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/cc/resources/task_graph_runner_perftest.cc b/cc/resources/task_graph_runner_perftest.cc index 71933f5..4cdd72bf 100644 --- a/cc/resources/task_graph_runner_perftest.cc +++ b/cc/resources/task_graph_runner_perftest.cc @@ -80,7 +80,7 @@ class TaskGraphRunnerPerfTest : public testing::Test { } while (!timer_.HasTimeLimitExpired()); perf_test::PrintResult("build_task_graph", - "", + TestModifierString(), test_name, timer_.LapsPerSecond(), "runs/s", @@ -119,7 +119,7 @@ class TaskGraphRunnerPerfTest : public testing::Test { CollectCompletedTasks(&completed_tasks); perf_test::PrintResult("schedule_tasks", - "", + TestModifierString(), test_name, timer_.LapsPerSecond(), "runs/s", @@ -165,7 +165,7 @@ class TaskGraphRunnerPerfTest : public testing::Test { CollectCompletedTasks(&completed_tasks); perf_test::PrintResult("schedule_alternate_tasks", - "", + TestModifierString(), test_name, timer_.LapsPerSecond(), "runs/s", @@ -203,11 +203,19 @@ class TaskGraphRunnerPerfTest : public testing::Test { timer_.NextLap(); } while (!timer_.HasTimeLimitExpired()); - perf_test::PrintResult( - "execute_tasks", "", test_name, timer_.LapsPerSecond(), "runs/s", true); + perf_test::PrintResult("execute_tasks", + TestModifierString(), + test_name, + timer_.LapsPerSecond(), + "runs/s", + true); } private: + static std::string TestModifierString() { + return std::string("_task_graph_runner"); + } + void CreateTasks(int num_tasks, PerfTaskImpl::Vector* tasks) { for (int i = 0; i < num_tasks; ++i) tasks->push_back(make_scoped_refptr(new PerfTaskImpl)); |