diff options
author | rkaplow <rkaplow@chromium.org> | 2015-03-04 16:31:49 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-05 00:32:28 +0000 |
commit | dd66a1342eeffa5d2cca8e1b3b35c86001094dfe (patch) | |
tree | c9d7b8356d71e47a65ae535226144c5dd452c004 /components/keyed_service | |
parent | bfe7577b0faa92b2fc912b7bbfe85bd994ac7e33 (diff) | |
download | chromium_src-dd66a1342eeffa5d2cca8e1b3b35c86001094dfe.zip chromium_src-dd66a1342eeffa5d2cca8e1b3b35c86001094dfe.tar.gz chromium_src-dd66a1342eeffa5d2cca8e1b3b35c86001094dfe.tar.bz2 |
Additional tracing and histogram in Extensions startup.
Followed a local Linux machine which was slower than expected to where the time was going. Stopped at the ExtensionManagement::Refresh level, and will measure if this is general slow.
BUG=454789
Review URL: https://codereview.chromium.org/977673002
Cr-Commit-Position: refs/heads/master@{#319173}
Diffstat (limited to 'components/keyed_service')
-rw-r--r-- | components/keyed_service/core/keyed_service_base_factory.cc | 3 | ||||
-rw-r--r-- | components/keyed_service/core/keyed_service_factory.cc | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/components/keyed_service/core/keyed_service_base_factory.cc b/components/keyed_service/core/keyed_service_base_factory.cc index ddaf497..7157c0e 100644 --- a/components/keyed_service/core/keyed_service_base_factory.cc +++ b/components/keyed_service/core/keyed_service_base_factory.cc @@ -6,10 +6,13 @@ #include "base/prefs/pref_service.h" #include "base/supports_user_data.h" +#include "base/trace_event/trace_event.h" #include "components/keyed_service/core/dependency_manager.h" void KeyedServiceBaseFactory::RegisterUserPrefsOnContextForTest( base::SupportsUserData* context) { + TRACE_EVENT0("browser,startup", + "KeyedServiceBaseFactory::RegisterUserPrefsOnContextForTest"); // Safe timing for pref registration is hard. Previously, we made // context responsible for all pref registration on every service // that used contexts. Now we don't and there are timing issues. diff --git a/components/keyed_service/core/keyed_service_factory.cc b/components/keyed_service/core/keyed_service_factory.cc index 261ff29d..1417bab 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"); context = GetContextToUse(context); if (!context) return nullptr; |