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

Unified Diff: content/gpu/gpu_main.cc

Issue 17451017: Process names, and predictable thread and process ordering in about:tracing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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: content/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 794617dde93681fba6c84b4bba9635e1cf178bbc..6be5d448931342f009a9b0044005b641bde5d696 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -84,6 +84,8 @@ bool GpuProcessLogMessageHandler(int severity,
// Main function for starting the Gpu process.
int GpuMain(const MainFunctionParams& parameters) {
TRACE_EVENT0("gpu", "GpuMain");
+ base::debug::TraceLog::GetInstance()->SetProcessLabel(0, "GPU Process");
+ base::debug::TraceLog::GetInstance()->SetProcessSortIndex(3);
dsinclair 2013/06/20 15:01:47 Would it be useful to move some of these magic num
const CommandLine& command_line = parameters.command_line;
if (command_line.HasSwitch(switches::kGpuStartupDialog)) {

Powered by Google App Engine
This is Rietveld 408576698