Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4737)

Unified Diff: cc/resources/task_graph_runner_perftest.cc

Issue 167753003: cc: Added modifier string to clarify perf tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-upload Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
« cc/resources/raster_worker_pool_perftest.cc ('K') | « cc/resources/raster_worker_pool_perftest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698