| Index: chrome/browser/chrome_browser_main.cc
|
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
|
| index 3b02122611bd9780277972e204e75b338839e0de..af98e290536b12a0f0e266853efb24d806b2c382 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -27,6 +27,7 @@
|
| #include "base/metrics/histogram_macros.h"
|
| #include "base/path_service.h"
|
| #include "base/profiler/scoped_tracker.h"
|
| +#include "base/profiler/stack_sampling_profiler.h"
|
| #include "base/run_loop.h"
|
| #include "base/strings/string16.h"
|
| #include "base/strings/string_number_conversions.h"
|
| @@ -926,6 +927,9 @@ void ChromeBrowserMainParts::PostMainMessageLoopStart() {
|
|
|
| for (size_t i = 0; i < chrome_extra_parts_.size(); ++i)
|
| chrome_extra_parts_[i]->PostMainMessageLoopStart();
|
| +
|
| + base::StackSamplingProfiler::SetProcessPhase(
|
| + metrics::CallStackProfileMetricsProvider::MAIN_LOOP_START);
|
| }
|
|
|
| int ChromeBrowserMainParts::PreCreateThreads() {
|
| @@ -2095,6 +2099,11 @@ void ChromeBrowserMainParts::PostDestroyThreads() {
|
| #endif // defined(OS_ANDROID)
|
| }
|
|
|
| +void ChromeBrowserMainParts::PreShutdown() {
|
| + base::StackSamplingProfiler::SetProcessPhase(
|
| + metrics::CallStackProfileMetricsProvider::SHUTDOWN_START);
|
| +}
|
| +
|
| // Public members:
|
|
|
| void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) {
|
|
|