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

Unified Diff: mandoline/services/core_services/core_services_application_delegate.cc

Issue 1409223004: mandoline: Add automatic tracing at mojo call sites. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Safety rebase to ToT Created 5 years, 2 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: mandoline/services/core_services/core_services_application_delegate.cc
diff --git a/mandoline/services/core_services/core_services_application_delegate.cc b/mandoline/services/core_services/core_services_application_delegate.cc
index 5ddac6f5f9236588b90eab50c2f4b4c16ded21b5..48c0c0ac8c469be6ebea9c871702b19ad2102e17 100644
--- a/mandoline/services/core_services/core_services_application_delegate.cc
+++ b/mandoline/services/core_services/core_services_application_delegate.cc
@@ -6,6 +6,7 @@
#include "base/bind.h"
#include "base/single_thread_task_runner.h"
+#include "base/threading/platform_thread.h"
#include "base/threading/simple_thread.h"
#include "components/clipboard/clipboard_application_delegate.h"
#include "components/filesystem/file_system_app.h"
@@ -16,6 +17,7 @@
#include "mojo/application/public/cpp/application_runner.h"
#include "mojo/logging/init_logging.h"
#include "mojo/message_pump/message_pump_mojo.h"
+#include "mojo/services/tracing/public/cpp/tracing_impl.h"
#include "mojo/services/tracing/tracing_app.h"
#include "url/gurl.h"
@@ -91,7 +93,9 @@ void CoreServicesApplicationDelegate::ApplicationThreadDestroyed(
}
void CoreServicesApplicationDelegate::Initialize(mojo::ApplicationImpl* app) {
+ base::PlatformThread::SetName("CoreServicesDispatcher");
mojo::logging::InitLogging();
+ tracing_.Initialize(app);
}
bool CoreServicesApplicationDelegate::ConfigureIncomingConnection(

Powered by Google App Engine
This is Rietveld 408576698