| Index: chrome/browser/chrome_browser_main.cc
|
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
|
| index 0a33f916ed9b662faddb2fee7b455f95fcb36f02..fb9d57ee2fdad2db1d02b2710b0a32dea76756d9 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -329,6 +329,7 @@ Profile* CreateProfile(const content::MainFunctionParams& parameters,
|
| const base::FilePath& user_data_dir,
|
| const CommandLine& parsed_command_line) {
|
| TRACE_EVENT0("startup", "ChromeBrowserMainParts::CreateProfile")
|
| + base::Time start = base::Time::Now();
|
| if (profiles::IsMultipleProfilesEnabled() &&
|
| parsed_command_line.HasSwitch(switches::kProfileDirectory)) {
|
| g_browser_process->local_state()->SetString(prefs::kProfileLastUsed,
|
| @@ -352,8 +353,11 @@ Profile* CreateProfile(const content::MainFunctionParams& parameters,
|
| profile = g_browser_process->profile_manager()->GetProfile(
|
| profile_path);
|
| #endif
|
| - if (profile)
|
| + if (profile) {
|
| + UMA_HISTOGRAM_LONG_TIMES(
|
| + "Startup.CreateFirstProfile", base::Time::Now() - start);
|
| return profile;
|
| + }
|
|
|
| #if !defined(OS_WIN)
|
| // TODO(port): fix this. See comments near the definition of
|
|
|