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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 2530043002: Set process phases in the StackSamplingProfiler. (Closed)
Patch Set: addressed review comments by wittman Created 4 years 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 3b02122611bd9780277972e204e75b338839e0de..8e4b0767b33a4342769c257a22838645c6e6cbe8 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"
@@ -2095,6 +2096,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) {

Powered by Google App Engine
This is Rietveld 408576698