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

Unified Diff: base/debug/trace_event_memory.cc

Issue 148613014: CC: Add 'cc-benchmark' traces for minimal tracing in benchmarks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minimum overhead toplevel tracing. 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 | « no previous file | base/debug/trace_event_memory_unittest.cc » ('j') | base/message_loop/message_loop.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/trace_event_memory.cc
diff --git a/base/debug/trace_event_memory.cc b/base/debug/trace_event_memory.cc
index 3c468278a15bcce12787067053adc1482bd8e92c..4b2b050df8e18116d1021b821c01af9b3d0c905b 100644
--- a/base/debug/trace_event_memory.cc
+++ b/base/debug/trace_event_memory.cc
@@ -409,9 +409,9 @@ bool AppendHeapProfileLineAsTraceFormat(const std::string& line,
// TODO(jamescook): Report the trace category and name separately to the
// trace viewer and allow it to decide what decorations to apply. For now
- // just hard-code a decoration for posted tasks (toplevel).
+ // just hard-code a decoration for posted tasks.
std::string trace_string(trace_name);
- if (!strcmp(trace_category, "toplevel"))
+ if (!strcmp(trace_category, "task"))
trace_string.append("->PostTask");
// Some trace name strings have double quotes, convert them to single.
« no previous file with comments | « no previous file | base/debug/trace_event_memory_unittest.cc » ('j') | base/message_loop/message_loop.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698