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

Unified Diff: content/ppapi_plugin/ppapi_plugin_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 | « content/ppapi_plugin/ppapi_broker_main.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/ppapi_plugin/ppapi_plugin_main.cc
diff --git a/content/ppapi_plugin/ppapi_plugin_main.cc b/content/ppapi_plugin/ppapi_plugin_main.cc
index ca73f49272b2c2ba71bb41de696f4970e406786c..c6fb5be8f85bb92069f8bf1b367a92d9410ca8ff 100644
--- a/content/ppapi_plugin/ppapi_plugin_main.cc
+++ b/content/ppapi_plugin/ppapi_plugin_main.cc
@@ -9,6 +9,7 @@
#include "base/threading/platform_thread.h"
#include "build/build_config.h"
#include "content/child/child_process.h"
+#include "content/common/content_constants_internal.h"
#include "content/common/sandbox_linux.h"
#include "content/ppapi_plugin/ppapi_thread.h"
#include "content/public/common/content_client.h"
@@ -81,6 +82,9 @@ int PpapiPluginMain(const MainFunctionParams& parameters) {
base::MessageLoop main_message_loop;
base::PlatformThread::SetName("CrPPAPIMain");
+ base::debug::TraceLog::GetInstance()->SetProcessName("PPAPI Process");
+ base::debug::TraceLog::GetInstance()->SetProcessSortIndex(
+ kTraceEventPpapiProcessSortIndex);
#if defined(OS_LINUX) && defined(USE_NSS)
// Some out-of-process PPAPI plugins use NSS.
« no previous file with comments | « content/ppapi_plugin/ppapi_broker_main.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698