Commit e8452d7b authored by Robert Kaplow's avatar Robert Kaplow Committed by Commit Bot

Remove old profile startup metrics.


Bug: 969926
Change-Id: I6dfab44d9edf50c29c32e2b32da8d3ed6c597a22
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1709784Reviewed-by: default avatarDominic Battré <battre@chromium.org>
Reviewed-by: default avatarMihai Sardarescu <msarda@chromium.org>
Commit-Queue: Robert Kaplow <rkaplow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681447}
parent 47e52693
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#include <string> #include <string>
#include "base/metrics/histogram_macros.h"
#include "base/trace_event/trace_event.h" #include "base/trace_event/trace_event.h"
#include "build/build_config.h" #include "build/build_config.h"
#include "chrome/browser/about_flags.h" #include "chrome/browser/about_flags.h"
...@@ -694,7 +693,6 @@ void RegisterLocalState(PrefRegistrySimple* registry) { ...@@ -694,7 +693,6 @@ void RegisterLocalState(PrefRegistrySimple* registry) {
void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry, void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry,
const std::string& locale) { const std::string& locale) {
TRACE_EVENT0("browser", "chrome::RegisterProfilePrefs"); TRACE_EVENT0("browser", "chrome::RegisterProfilePrefs");
SCOPED_UMA_HISTOGRAM_TIMER("Settings.RegisterProfilePrefsTime");
// User prefs. Please keep this list alphabetized. // User prefs. Please keep this list alphabetized.
AccessibilityLabelsService::RegisterProfilePrefs(registry); AccessibilityLabelsService::RegisterProfilePrefs(registry);
AccessibilityUIMessageHandler::RegisterProfilePrefs(registry); AccessibilityUIMessageHandler::RegisterProfilePrefs(registry);
......
...@@ -432,7 +432,6 @@ std::unique_ptr<sync_preferences::PrefServiceSyncable> CreateProfilePrefs( ...@@ -432,7 +432,6 @@ std::unique_ptr<sync_preferences::PrefServiceSyncable> CreateProfilePrefs(
scoped_refptr<base::SequencedTaskRunner> io_task_runner, scoped_refptr<base::SequencedTaskRunner> io_task_runner,
std::unique_ptr<PrefValueStore::Delegate> delegate) { std::unique_ptr<PrefValueStore::Delegate> delegate) {
TRACE_EVENT0("browser", "chrome_prefs::CreateProfilePrefs"); TRACE_EVENT0("browser", "chrome_prefs::CreateProfilePrefs");
SCOPED_UMA_HISTOGRAM_TIMER("PrefService.CreateProfilePrefsTime");
prefs::mojom::ResetOnLoadObserverPtr reset_on_load_observer; prefs::mojom::ResetOnLoadObserverPtr reset_on_load_observer;
mojo::MakeStrongBinding( mojo::MakeStrongBinding(
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "base/files/file_util.h" #include "base/files/file_util.h"
#include "base/logging.h" #include "base/logging.h"
#include "base/memory/weak_ptr.h" #include "base/memory/weak_ptr.h"
#include "base/metrics/histogram_macros.h"
#include "base/path_service.h" #include "base/path_service.h"
#include "base/sequenced_task_runner.h" #include "base/sequenced_task_runner.h"
#include "base/strings/string_number_conversions.h" #include "base/strings/string_number_conversions.h"
...@@ -629,7 +628,6 @@ void ProfileImpl::LoadPrefsForNormalStartup(bool async_prefs) { ...@@ -629,7 +628,6 @@ void ProfileImpl::LoadPrefsForNormalStartup(bool async_prefs) {
void ProfileImpl::DoFinalInit() { void ProfileImpl::DoFinalInit() {
TRACE_EVENT0("browser", "ProfileImpl::DoFinalInit") TRACE_EVENT0("browser", "ProfileImpl::DoFinalInit")
SCOPED_UMA_HISTOGRAM_TIMER("Profile.ProfileImplDoFinalInit");
PrefService* prefs = GetPrefs(); PrefService* prefs = GetPrefs();
pref_change_registrar_.Init(prefs); pref_change_registrar_.Init(prefs);
...@@ -756,12 +754,9 @@ void ProfileImpl::DoFinalInit() { ...@@ -756,12 +754,9 @@ void ProfileImpl::DoFinalInit() {
// initialized. // initialized.
SharingServiceFactory::GetForBrowserContext(this); SharingServiceFactory::GetForBrowserContext(this);
{ content::NotificationService::current()->Notify(
SCOPED_UMA_HISTOGRAM_TIMER("Profile.NotifyProfileCreatedTime"); chrome::NOTIFICATION_PROFILE_CREATED, content::Source<Profile>(this),
content::NotificationService::current()->Notify( content::NotificationService::NoDetails());
chrome::NOTIFICATION_PROFILE_CREATED, content::Source<Profile>(this),
content::NotificationService::NoDetails());
}
} }
base::FilePath ProfileImpl::last_selected_directory() { base::FilePath ProfileImpl::last_selected_directory() {
...@@ -947,7 +942,6 @@ ExtensionSpecialStoragePolicy* ProfileImpl::GetExtensionSpecialStoragePolicy() { ...@@ -947,7 +942,6 @@ ExtensionSpecialStoragePolicy* ProfileImpl::GetExtensionSpecialStoragePolicy() {
void ProfileImpl::OnLocaleReady() { void ProfileImpl::OnLocaleReady() {
TRACE_EVENT0("browser", "ProfileImpl::OnLocaleReady"); TRACE_EVENT0("browser", "ProfileImpl::OnLocaleReady");
SCOPED_UMA_HISTOGRAM_TIMER("Profile.OnLocaleReadyTime");
// Migrate obsolete prefs. // Migrate obsolete prefs.
if (g_browser_process->local_state()) if (g_browser_process->local_state())
MigrateObsoleteBrowserPrefs(this, g_browser_process->local_state()); MigrateObsoleteBrowserPrefs(this, g_browser_process->local_state());
...@@ -985,11 +979,8 @@ void ProfileImpl::OnLocaleReady() { ...@@ -985,11 +979,8 @@ void ProfileImpl::OnLocaleReady() {
FullBrowserTransitionManager::Get()->OnProfileCreated(this); FullBrowserTransitionManager::Get()->OnProfileCreated(this);
{ BrowserContextDependencyManager::GetInstance()->CreateBrowserContextServices(
SCOPED_UMA_HISTOGRAM_TIMER("Profile.CreateBrowserContextServicesTime"); this);
BrowserContextDependencyManager::GetInstance()
->CreateBrowserContextServices(this);
}
ChromeVersionService::OnProfileLoaded(prefs_.get(), IsNewProfile()); ChromeVersionService::OnProfileLoaded(prefs_.get(), IsNewProfile());
DoFinalInit(); DoFinalInit();
......
...@@ -1314,7 +1314,6 @@ void ProfileManager::DoFinalInitLogging(Profile* profile) { ...@@ -1314,7 +1314,6 @@ void ProfileManager::DoFinalInitLogging(Profile* profile) {
Profile* ProfileManager::CreateProfileHelper(const base::FilePath& path) { Profile* ProfileManager::CreateProfileHelper(const base::FilePath& path) {
TRACE_EVENT0("browser", "ProfileManager::CreateProfileHelper"); TRACE_EVENT0("browser", "ProfileManager::CreateProfileHelper");
SCOPED_UMA_HISTOGRAM_TIMER("Profile.CreateProfileHelperTime");
return Profile::CreateProfile(path, NULL, Profile::CREATE_MODE_SYNCHRONOUS) return Profile::CreateProfile(path, NULL, Profile::CREATE_MODE_SYNCHRONOUS)
.release(); .release();
...@@ -1396,7 +1395,6 @@ bool ProfileManager::AddProfile(std::unique_ptr<Profile> profile) { ...@@ -1396,7 +1395,6 @@ bool ProfileManager::AddProfile(std::unique_ptr<Profile> profile) {
Profile* ProfileManager::CreateAndInitializeProfile( Profile* ProfileManager::CreateAndInitializeProfile(
const base::FilePath& profile_dir) { const base::FilePath& profile_dir) {
TRACE_EVENT0("browser", "ProfileManager::CreateAndInitializeProfile"); TRACE_EVENT0("browser", "ProfileManager::CreateAndInitializeProfile");
SCOPED_UMA_HISTOGRAM_LONG_TIMER("Profile.CreateAndInitializeProfile");
// CHECK that we are not trying to load the same profile twice, to prevent // CHECK that we are not trying to load the same profile twice, to prevent
// profile corruption. Note that this check also covers the case when we have // profile corruption. Note that this check also covers the case when we have
......
...@@ -104144,6 +104144,9 @@ uploading your change for review. ...@@ -104144,6 +104144,9 @@ uploading your change for review.
</histogram> </histogram>
<histogram name="PrefService.CreateProfilePrefsTime" units="ms"> <histogram name="PrefService.CreateProfilePrefsTime" units="ms">
<obsolete>
Removed 07/2019.
</obsolete>
<owner>rkaplow@chromium.org</owner> <owner>rkaplow@chromium.org</owner>
<summary>The amount of time that elapsed during CreateProfilePrefs.</summary> <summary>The amount of time that elapsed during CreateProfilePrefs.</summary>
</histogram> </histogram>
...@@ -106757,11 +106760,17 @@ uploading your change for review. ...@@ -106757,11 +106760,17 @@ uploading your change for review.
<histogram name="Profile.CreateAndInitializeProfile" units="ms" <histogram name="Profile.CreateAndInitializeProfile" units="ms"
expires_after="M77"> expires_after="M77">
<obsolete>
Removed 07/2019.
</obsolete>
<owner>rkaplow@chromium.org</owner> <owner>rkaplow@chromium.org</owner>
<summary>Length of time to setup profile.</summary> <summary>Length of time to setup profile.</summary>
</histogram> </histogram>
<histogram name="Profile.CreateBrowserContextServicesTime" units="ms"> <histogram name="Profile.CreateBrowserContextServicesTime" units="ms">
<obsolete>
Removed 07/2019.
</obsolete>
<owner>rkaplow@chromium.org</owner> <owner>rkaplow@chromium.org</owner>
<summary> <summary>
The amount of time that elapsed during the CreateBrowserContextServices call The amount of time that elapsed during the CreateBrowserContextServices call
...@@ -106771,6 +106780,9 @@ uploading your change for review. ...@@ -106771,6 +106780,9 @@ uploading your change for review.
<histogram name="Profile.CreateProfileHelperTime" units="ms" <histogram name="Profile.CreateProfileHelperTime" units="ms"
expires_after="M77"> expires_after="M77">
<obsolete>
Removed 07/2019.
</obsolete>
<owner>rkaplow@chromium.org</owner> <owner>rkaplow@chromium.org</owner>
<summary> <summary>
The amount of time that elapsed during ProfileManager::CreateProfileHelper. The amount of time that elapsed during ProfileManager::CreateProfileHelper.
...@@ -107004,6 +107016,9 @@ uploading your change for review. ...@@ -107004,6 +107016,9 @@ uploading your change for review.
<histogram name="Profile.NotifyProfileCreatedTime" units="ms" <histogram name="Profile.NotifyProfileCreatedTime" units="ms"
expires_after="M77"> expires_after="M77">
<obsolete>
Removed 07/2019.
</obsolete>
<owner>rkaplow@chromium.org</owner> <owner>rkaplow@chromium.org</owner>
<summary> <summary>
The amount of time that elapsed during the Notify() of The amount of time that elapsed during the Notify() of
...@@ -107158,6 +107173,9 @@ uploading your change for review. ...@@ -107158,6 +107173,9 @@ uploading your change for review.
</histogram> </histogram>
<histogram name="Profile.OnLocaleReadyTime" units="ms"> <histogram name="Profile.OnLocaleReadyTime" units="ms">
<obsolete>
Removed 07/2019.
</obsolete>
<owner>rkaplow@chromium.org</owner> <owner>rkaplow@chromium.org</owner>
<summary> <summary>
The amount of time that elapsed during ProfileImpl::OnLocaleReady. This The amount of time that elapsed during ProfileImpl::OnLocaleReady. This
...@@ -107215,6 +107233,9 @@ uploading your change for review. ...@@ -107215,6 +107233,9 @@ uploading your change for review.
</histogram> </histogram>
<histogram name="Profile.ProfileImplDoFinalInit" units="ms"> <histogram name="Profile.ProfileImplDoFinalInit" units="ms">
<obsolete>
Removed 07/2019.
</obsolete>
<owner>rkaplow@chromium.org</owner> <owner>rkaplow@chromium.org</owner>
<summary> <summary>
The amount of time that elapsed during the ProfileImpl::DoFinalInit(). The amount of time that elapsed during the ProfileImpl::DoFinalInit().
...@@ -124430,6 +124451,9 @@ should be kept until we remove incident reporting. --> ...@@ -124430,6 +124451,9 @@ should be kept until we remove incident reporting. -->
</histogram> </histogram>
<histogram name="Settings.RegisterProfilePrefsTime" units="ms"> <histogram name="Settings.RegisterProfilePrefsTime" units="ms">
<obsolete>
Removed 07/2019.
</obsolete>
<owner>rkaplow@chromium.org</owner> <owner>rkaplow@chromium.org</owner>
<summary> <summary>
The amount of time that elapsed during RegisterProfilePrefs. The amount of time that elapsed during RegisterProfilePrefs.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment