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

Unified Diff: content/browser/browser_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: fix trybots i think Created 7 years, 5 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 | « base/debug/trace_event_impl.cc ('k') | content/common/content_constants_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main.cc
diff --git a/content/browser/browser_main.cc b/content/browser/browser_main.cc
index df6a4e0e09191307682542fd44bb0b83028c588b..640ccee5ac715ca9ebc576895bc89b0427da12df 100644
--- a/content/browser/browser_main.cc
+++ b/content/browser/browser_main.cc
@@ -5,6 +5,7 @@
#include "content/browser/browser_main.h"
#include "base/debug/trace_event.h"
+#include "content/common/content_constants_internal.h"
#include "content/public/browser/browser_main_runner.h"
namespace content {
@@ -12,6 +13,9 @@ namespace content {
// Main routine for running as the Browser process.
int BrowserMain(const MainFunctionParams& parameters) {
TRACE_EVENT_BEGIN_ETW("BrowserMain", 0, "");
+ base::debug::TraceLog::GetInstance()->SetProcessName("Browser");
+ base::debug::TraceLog::GetInstance()->SetProcessSortIndex(
+ kTraceEventBrowserProcessSortIndex);
scoped_ptr<BrowserMainRunner> main_runner(BrowserMainRunner::Create());
« no previous file with comments | « base/debug/trace_event_impl.cc ('k') | content/common/content_constants_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698