| 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() {
|
|
|