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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 2927593002: Make stack sampling profiler sample beyond startup. (Closed)
Patch Set: Address comments. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 294ab872336deb568b4ac1a48072e673dc2cbc33..05c7c2cb983a6f7a5de1dcbe2341a451d7dbbe09 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -630,16 +630,11 @@ ChromeBrowserMainParts::ChromeBrowserMainParts(
result_code_(content::RESULT_CODE_NORMAL_EXIT),
startup_watcher_(new StartupTimeBomb()),
shutdown_watcher_(new ShutdownWatcherHelper()),
- sampling_profiler_(
- base::PlatformThread::CurrentId(),
- StackSamplingConfiguration::Get()->
- GetSamplingParamsForCurrentProcess(),
- metrics::CallStackProfileMetricsProvider::GetProfilerCallback(
- metrics::CallStackProfileParams(
- metrics::CallStackProfileParams::BROWSER_PROCESS,
- metrics::CallStackProfileParams::UI_THREAD,
- metrics::CallStackProfileParams::PROCESS_STARTUP,
- metrics::CallStackProfileParams::MAY_SHUFFLE))),
+ sampling_profiler_(base::PlatformThread::CurrentId(),
+ StackSamplingConfiguration::Get()
+ ->GetSamplingParamsForCurrentProcess(),
+ StackSamplingConfiguration::Get()
+ ->GetProfilerCallbackForCurrentProcess()),
profile_(NULL),
run_message_loop_(true),
local_state_(NULL) {

Powered by Google App Engine
This is Rietveld 408576698