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

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

Issue 62953020: Added UMA to track ExtensionService::Init time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedback Created 7 years, 1 month 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 | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 2b39df1d5a69e5d69c8f52ff46e010b893bf7254..bb9cacb6fa10db3ea5aa6d758bc9f0148dcab80d 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -508,6 +508,8 @@ const Extension* ExtensionService::GetExtensionById(
void ExtensionService::Init() {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ base::Time begin_time = base::Time::Now();
+
DCHECK(!is_ready()); // Can't redo init.
DCHECK_EQ(extensions_.size(), 0u);
@@ -587,6 +589,9 @@ void ExtensionService::Init() {
system_->management_policy()->RegisterProvider(
shared_module_policy_provider_.get());
}
+
+ UMA_HISTOGRAM_TIMES("Extensions.ExtensionServiceInitTime",
+ base::Time::Now() - begin_time);
}
bool ExtensionService::UpdateExtension(const std::string& id,
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698