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

Side by Side Diff: chrome/browser/chrome_browser_main.cc

Issue 2964103002: [GRC] Decouple Render Process CPU Measurement from CU Graph (Closed)
Patch Set: Rebase Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chrome_browser_main.h" 5 #include "chrome/browser/chrome_browser_main.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 #include "chrome/browser/prefs/incognito_mode_prefs.h" 82 #include "chrome/browser/prefs/incognito_mode_prefs.h"
83 #include "chrome/browser/prefs/pref_metrics_service.h" 83 #include "chrome/browser/prefs/pref_metrics_service.h"
84 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h" 84 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h"
85 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h" 85 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h"
86 #include "chrome/browser/process_singleton.h" 86 #include "chrome/browser/process_singleton.h"
87 #include "chrome/browser/profiles/profile.h" 87 #include "chrome/browser/profiles/profile.h"
88 #include "chrome/browser/profiles/profile_attributes_entry.h" 88 #include "chrome/browser/profiles/profile_attributes_entry.h"
89 #include "chrome/browser/profiles/profile_attributes_storage.h" 89 #include "chrome/browser/profiles/profile_attributes_storage.h"
90 #include "chrome/browser/profiles/profile_manager.h" 90 #include "chrome/browser/profiles/profile_manager.h"
91 #include "chrome/browser/profiles/profiles_state.h" 91 #include "chrome/browser/profiles/profiles_state.h"
92 #include "chrome/browser/resource_coordinator/resource_coordinator_render_proces s_probe.h"
92 #include "chrome/browser/resource_coordinator/tab_manager.h" 93 #include "chrome/browser/resource_coordinator/tab_manager.h"
93 #include "chrome/browser/sessions/chrome_serialized_navigation_driver.h" 94 #include "chrome/browser/sessions/chrome_serialized_navigation_driver.h"
94 #include "chrome/browser/shell_integration.h" 95 #include "chrome/browser/shell_integration.h"
95 #include "chrome/browser/tracing/navigation_tracing.h" 96 #include "chrome/browser/tracing/navigation_tracing.h"
96 #include "chrome/browser/translate/translate_service.h" 97 #include "chrome/browser/translate/translate_service.h"
97 #include "chrome/browser/ui/app_list/app_list_service.h" 98 #include "chrome/browser/ui/app_list/app_list_service.h"
98 #include "chrome/browser/ui/browser.h" 99 #include "chrome/browser/ui/browser.h"
99 #include "chrome/browser/ui/browser_finder.h" 100 #include "chrome/browser/ui/browser_finder.h"
100 #include "chrome/browser/ui/javascript_dialogs/chrome_javascript_native_dialog_f actory.h" 101 #include "chrome/browser/ui/javascript_dialogs/chrome_javascript_native_dialog_f actory.h"
101 #include "chrome/browser/ui/profile_error_dialog.h" 102 #include "chrome/browser/ui/profile_error_dialog.h"
(...skipping 1844 matching lines...) Expand 10 before | Expand all | Expand 10 after
1946 1947
1947 // These should be invoked as close to the start of the browser's 1948 // These should be invoked as close to the start of the browser's
1948 // UI thread message loop as possible to get a stable measurement 1949 // UI thread message loop as possible to get a stable measurement
1949 // across versions. 1950 // across versions.
1950 RecordBrowserStartupTime(); 1951 RecordBrowserStartupTime();
1951 1952
1952 DCHECK(base::MessageLoopForUI::IsCurrent()); 1953 DCHECK(base::MessageLoopForUI::IsCurrent());
1953 base::RunLoop run_loop; 1954 base::RunLoop run_loop;
1954 1955
1955 performance_monitor::PerformanceMonitor::GetInstance()->StartGatherCycle(); 1956 performance_monitor::PerformanceMonitor::GetInstance()->StartGatherCycle();
1957 resource_coordinator::ResourceCoordinatorRenderProcessProbe::GetInstance()
1958 ->StartGatherCycle();
1956 1959
1957 metrics::MetricsService::SetExecutionPhase( 1960 metrics::MetricsService::SetExecutionPhase(
1958 metrics::ExecutionPhase::MAIN_MESSAGE_LOOP_RUN, 1961 metrics::ExecutionPhase::MAIN_MESSAGE_LOOP_RUN,
1959 g_browser_process->local_state()); 1962 g_browser_process->local_state());
1960 run_loop.Run(); 1963 run_loop.Run();
1961 1964
1962 return true; 1965 return true;
1963 #endif // defined(OS_ANDROID) 1966 #endif // defined(OS_ANDROID)
1964 } 1967 }
1965 1968
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
2064 chromeos::CrosSettings::Shutdown(); 2067 chromeos::CrosSettings::Shutdown();
2065 #endif // defined(OS_CHROMEOS) 2068 #endif // defined(OS_CHROMEOS)
2066 #endif // defined(OS_ANDROID) 2069 #endif // defined(OS_ANDROID)
2067 } 2070 }
2068 2071
2069 // Public members: 2072 // Public members:
2070 2073
2071 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { 2074 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) {
2072 chrome_extra_parts_.push_back(parts); 2075 chrome_extra_parts_.push_back(parts);
2073 } 2076 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698