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

Unified Diff: chrome/browser/chrome_browser_field_trials_desktop.cc

Issue 1980743002: Track thread activities in order to diagnose hangs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@readwrite-mmf
Patch Set: track locks and waitable events Created 4 years, 7 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_field_trials_desktop.cc
diff --git a/chrome/browser/chrome_browser_field_trials_desktop.cc b/chrome/browser/chrome_browser_field_trials_desktop.cc
index 3970bf2f0b90b873b2ea5497cef6a28e509ec351..12bf0e5abb94a63658a5d6a7c3c69d2758915846 100644
--- a/chrome/browser/chrome_browser_field_trials_desktop.cc
+++ b/chrome/browser/chrome_browser_field_trials_desktop.cc
@@ -7,8 +7,11 @@
#include <string>
#include "base/command_line.h"
+#include "base/debug/activity_tracker.h"
#include "base/metrics/field_trial.h"
+#include "base/path_service.h"
#include "chrome/browser/prerender/prerender_field_trial.h"
+#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/variations/variations_util.h"
#include "components/variations/variations_associated_data.h"
@@ -52,6 +55,11 @@ void SetupDesktopFieldTrials(const base::CommandLine& parsed_command_line) {
prerender::ConfigurePrerender(parsed_command_line);
SetupLightSpeedTrials();
SetupStunProbeTrial();
+
+ base::FilePath activity_file;
+ if (base::PathService::Get(chrome::DIR_USER_DATA, &activity_file))
+ activity_file = activity_file.AppendASCII("ActivityTracker");
+ base::debug::SetupGlobalActivityTrackerFieldTrial(activity_file);
}
} // namespace chrome
« base/synchronization/waitable_event_win.cc ('K') | « base/synchronization/waitable_event_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698