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

Unified Diff: content/renderer/renderer_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/renderer/renderer_main.cc
diff --git a/content/renderer/renderer_main.cc b/content/renderer/renderer_main.cc
index 22f5816da2154100947a509bf151c8a3ed88da8f..d40da754105f6d293990dbab030eebc85f246c14 100644
--- a/content/renderer/renderer_main.cc
+++ b/content/renderer/renderer_main.cc
@@ -107,6 +107,9 @@ class MemoryObserver : public base::MessageLoop::TaskObserver {
// mainline routine for running as the Renderer process
int RendererMain(const MainFunctionParams& parameters) {
TRACE_EVENT_BEGIN_ETW("RendererMain", 0, "");
+ base::debug::TraceLog::GetInstance()->SetProcessSortIndex(1);
+ base::debug::TraceLog::GetInstance()->SetThreadSortIndex(
+ static_cast<int>(base::PlatformThread::CurrentId()), -1);
dsinclair 2013/06/20 15:01:47 If we're always call SetThreadSortIndex from the t
const CommandLine& parsed_command_line = parameters.command_line;
« content/renderer/render_view_impl.cc ('K') | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698