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

Unified Diff: components/keyed_service/core/keyed_service_factory.cc

Issue 977673002: Additional tracing and histogram in Extensions startup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: components/keyed_service/core/keyed_service_factory.cc
diff --git a/components/keyed_service/core/keyed_service_factory.cc b/components/keyed_service/core/keyed_service_factory.cc
index 261ff29d556c319e143b8fe9e6646c77cf13a29d..1417bab80a39e88278147bd333e60854f13f5890 100644
--- a/components/keyed_service/core/keyed_service_factory.cc
+++ b/components/keyed_service/core/keyed_service_factory.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/stl_util.h"
+#include "base/trace_event/trace_event.h"
#include "components/keyed_service/core/dependency_manager.h"
#include "components/keyed_service/core/keyed_service.h"
@@ -58,6 +59,7 @@ KeyedService* KeyedServiceFactory::SetTestingFactoryAndUse(
KeyedService* KeyedServiceFactory::GetServiceForContext(
base::SupportsUserData* context,
bool create) {
+ TRACE_EVENT0("browser,startup", "KeyedServiceFactory::GetServiceForContext");
Elliot Glaysher 2015/03/04 19:06:00 I expect that this event will be extremely spammy.
context = GetContextToUse(context);
if (!context)
return nullptr;
« no previous file with comments | « components/keyed_service/core/keyed_service_base_factory.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698