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

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: rebase 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
« no previous file with comments | « cc/resources/raster_worker_pool_perftest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4cdd72bfb7641f24428fbf2bd19244961b74a998 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));
« no previous file with comments | « 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