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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 2927593002: Make stack sampling profiler sample beyond startup. (Closed)
Patch Set: Created 3 years, 6 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 efc1b8e338b7120a7913baba562751e3699a6976..77a35a721cd17ffec02e01cd187f664580285288 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