Chromium Code Reviews| Index: cc/resources/task_graph_runner_perftest.cc |
| diff --git a/cc/resources/task_graph_runner_perftest.cc b/cc/resources/task_graph_runner_perftest.cc |
| index 71933f58b94e668d4bdbc4e409a3a803f15a175c..1587e50eb39738252154bc696c199e2f31cbe3bf 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,18 @@ 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"); |
| + } |
|
reveman
2014/02/14 23:40:16
nit: blank line after function
alokp
2014/02/15 00:26:11
Done.
|
| void CreateTasks(int num_tasks, PerfTaskImpl::Vector* tasks) { |
| for (int i = 0; i < num_tasks; ++i) |
| tasks->push_back(make_scoped_refptr(new PerfTaskImpl)); |