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

Unified Diff: components/html_viewer/global_state.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
« no previous file with comments | « components/html_viewer/global_state.h ('k') | components/mus/mus_app.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/global_state.cc
diff --git a/components/html_viewer/global_state.cc b/components/html_viewer/global_state.cc
index 04191e9dfa8efb400601b8bad84532806cd77d8f..37e5c49e7f132af1ff76af0556423d7a8d0c8144 100644
--- a/components/html_viewer/global_state.cc
+++ b/components/html_viewer/global_state.cc
@@ -17,6 +17,7 @@
#include "gin/v8_initializer.h"
#include "mojo/application/public/cpp/application_impl.h"
#include "mojo/logging/init_logging.h"
+#include "mojo/services/tracing/public/cpp/tracing_impl.h"
#include "third_party/WebKit/public/web/WebKit.h"
#include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
#include "ui/base/resource/resource_bundle.h"
@@ -78,7 +79,9 @@ GlobalState::GlobalState(mojo::ApplicationImpl* app)
device_pixel_ratio_(1.f),
discardable_memory_allocator_(kDesiredMaxMemory),
compositor_thread_("compositor thread"),
- blink_settings_(new BlinkSettingsImpl()) {}
+ blink_settings_(new BlinkSettingsImpl()) {
+ tracing_.Initialize(app);
+}
GlobalState::~GlobalState() {
if (blink_platform_) {
« no previous file with comments | « components/html_viewer/global_state.h ('k') | components/mus/mus_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698