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

Unified Diff: chrome/browser/extensions/extension_system_impl.cc

Issue 928633002: Add some tracing for Profiles and Extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: additionally mark some of the traces as startup Created 5 years, 10 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 | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/extensions/installed_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_system_impl.cc
diff --git a/chrome/browser/extensions/extension_system_impl.cc b/chrome/browser/extensions/extension_system_impl.cc
index d1d5e12b0f6a73a792a8946f3f59a38150e41718..10a729ab240e5fd51d8b3326f9fd82811fa63666 100644
--- a/chrome/browser/extensions/extension_system_impl.cc
+++ b/chrome/browser/extensions/extension_system_impl.cc
@@ -13,6 +13,7 @@
#include "base/metrics/histogram.h"
#include "base/strings/string_tokenizer.h"
#include "base/strings/string_util.h"
+#include "base/trace_event/trace_event.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/content_settings/cookie_settings.h"
#include "chrome/browser/extensions/component_loader.h"
@@ -294,6 +295,7 @@ class ContentVerifierDelegateImpl : public ContentVerifierDelegate {
} // namespace
void ExtensionSystemImpl::Shared::Init(bool extensions_enabled) {
+ TRACE_EVENT0("browser,startup", "ExtensionSystemImpl::Shared::Init");
const base::CommandLine* command_line =
base::CommandLine::ForCurrentProcess();
@@ -486,6 +488,7 @@ void ExtensionSystemImpl::Shutdown() {
}
void ExtensionSystemImpl::InitForRegularProfile(bool extensions_enabled) {
+ TRACE_EVENT0("browser,startup", "ExtensionSystemImpl::InitForRegularProfile");
DCHECK(!profile_->IsOffTheRecord());
if (shared_user_script_master() || extension_service())
return; // Already initialized.
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/extensions/installed_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698