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

Unified Diff: base/tracked_objects.cc

Issue 9702015: [UMA] Add performance profile data to UMA uploads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix BASE_EXPORT usage Created 8 years, 8 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
« no previous file with comments | « base/profiler/alternate_timer.cc ('k') | chrome/browser/metrics/metrics_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/tracked_objects.cc
diff --git a/base/tracked_objects.cc b/base/tracked_objects.cc
index 38b9320eb5a653d6db254633f7483bd6d8d9c00a..2c845001b754cf3417246b0414dc37363e25b74f 100644
--- a/base/tracked_objects.cc
+++ b/base/tracked_objects.cc
@@ -648,21 +648,9 @@ void ThreadData::Reset() {
}
static void OptionallyInitializeAlternateTimer() {
- char* alternate_selector = getenv(kAlternateProfilerTime);
- if (!alternate_selector)
- return;
- switch (*alternate_selector) {
- case '0': // This is the default value, and uses the wall clock time.
- break;
- case '1': {
- // Use the TCMalloc allocations-on-thread as a pseudo-time.
- ThreadData::SetAlternateTimeSource(GetAlternateTimeSource());
- break;
- }
- default:
- NOTREACHED();
- break;
- }
+ NowFunction* alternate_time_source = GetAlternateTimeSource();
+ if (alternate_time_source)
+ ThreadData::SetAlternateTimeSource(alternate_time_source);
}
bool ThreadData::Initialize() {
« no previous file with comments | « base/profiler/alternate_timer.cc ('k') | chrome/browser/metrics/metrics_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698