diff options
author | nduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-08 23:14:39 +0000 |
---|---|---|
committer | nduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-08 23:14:39 +0000 |
commit | 91a2aeac66b45ac32f809d184c9e456afc7a922e (patch) | |
tree | 7c6ef0c47bb89372c0fec14831fed4db096cd9d4 /content/renderer/renderer_main.cc | |
parent | 89d9b38895a1cf9a9205683118da437c72c274d1 (diff) | |
download | chromium_src-91a2aeac66b45ac32f809d184c9e456afc7a922e.zip chromium_src-91a2aeac66b45ac32f809d184c9e456afc7a922e.tar.gz chromium_src-91a2aeac66b45ac32f809d184c9e456afc7a922e.tar.bz2 |
Process names, and predictable thread and process ordering in about:tracing
R=dsinclair
Review URL: https://chromiumcodereview.appspot.com/17451017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210437 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/renderer_main.cc')
-rw-r--r-- | content/renderer/renderer_main.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/content/renderer/renderer_main.cc b/content/renderer/renderer_main.cc index 0cfc505..942db83 100644 --- a/content/renderer/renderer_main.cc +++ b/content/renderer/renderer_main.cc @@ -23,6 +23,7 @@ #include "base/time/time.h" #include "base/timer/hi_res_timer_manager.h" #include "content/child/child_process.h" +#include "content/common/content_constants_internal.h" #include "content/common/pepper_plugin_registry.h" #include "content/public/common/content_switches.h" #include "content/public/common/main_function_params.h" @@ -110,6 +111,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()->SetProcessName("Renderer"); + base::debug::TraceLog::GetInstance()->SetProcessSortIndex( + kTraceEventRendererProcessSortIndex); const CommandLine& parsed_command_line = parameters.command_line; |