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

Unified Diff: examples/trace_me/trace_me_app.cc

Issue 1334213002: Support for tracing app initialization. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | mojo/common/trace_provider_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/trace_me/trace_me_app.cc
diff --git a/examples/trace_me/trace_me_app.cc b/examples/trace_me/trace_me_app.cc
index 3132ad89bebb4bedaeb38317a5efad2d54599567..972232db95a2277abb7e9cc18915abfe6d63d2ef 100644
--- a/examples/trace_me/trace_me_app.cc
+++ b/examples/trace_me/trace_me_app.cc
@@ -52,12 +52,12 @@ class TraceMeApp : public mojo::ApplicationDelegate {
// mojo:ApplicationDelegate:
void Initialize(mojo::ApplicationImpl* app) override {
- TRACE_EVENT0("trace_me", "TraceMeApp::Initialize");
-
// Allow TracingImpl to connect to the central tracing service, advertising
// its ability to provide trace events.
tracing_.Initialize(app);
+ TRACE_EVENT0("trace_me", "TraceMeApp::Initialize");
+
base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind(&DoWork));
}
« no previous file with comments | « no previous file | mojo/common/trace_provider_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698