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

Unified Diff: shell/application_manager/local_fetcher.cc

Issue 1024723002: Add some trace points to mojo_shell for app lifetime (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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: shell/application_manager/local_fetcher.cc
diff --git a/shell/application_manager/local_fetcher.cc b/shell/application_manager/local_fetcher.cc
index 88339b0a85d9580679a79dcb013ba790cfd397bc..9b9a84384d2700d80c0aa6bece99c469b919bb57 100644
--- a/shell/application_manager/local_fetcher.cc
+++ b/shell/application_manager/local_fetcher.cc
@@ -10,6 +10,7 @@
#include "base/message_loop/message_loop.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
+#include "base/trace_event/trace_event.h"
#include "mojo/common/common_type_converters.h"
#include "mojo/common/data_pipe_utils.h"
#include "url/url_util.h"
@@ -29,6 +30,7 @@ LocalFetcher::LocalFetcher(const GURL& url,
const GURL& url_without_query,
const FetchCallback& loader_callback)
: Fetcher(loader_callback), url_(url), path_(UrlToFile(url_without_query)) {
+ TRACE_EVENT0("mojo_shell", "LocalFetcher::LocalFetcher");
viettrungluu 2015/03/24 20:04:34 Should you record the url (with or without query,
jamesr 2015/03/27 20:42:21 Done.
loader_callback_.Run(make_scoped_ptr(this));
}

Powered by Google App Engine
This is Rietveld 408576698