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

Unified Diff: base/allocator/allocator_shim.cc

Issue 10225017: Explicitly track the time source type in base/profiler/alternate_timer.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed a spot.. 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 | « no previous file | base/profiler/alternate_timer.h » ('j') | base/profiler/alternate_timer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/allocator/allocator_shim.cc
diff --git a/base/allocator/allocator_shim.cc b/base/allocator/allocator_shim.cc
index d61a9a47ff573d183ee372e6a01b740c2bebfc59..075828d884b7b1054ed0d810cd5b0b0d4473d270 100644
--- a/base/allocator/allocator_shim.cc
+++ b/base/allocator/allocator_shim.cc
@@ -270,7 +270,8 @@ extern "C" int _heap_init() {
GetenvBeforeMain(tracked_objects::kAlternateProfilerTime);
if (profiling && *profiling == '1') {
tracked_objects::SetAlternateTimeSource(
- tcmalloc::ThreadCache::GetBytesAllocatedOnCurrentThread);
+ tcmalloc::ThreadCache::GetBytesAllocatedOnCurrentThread,
+ tracked_objects::TIME_SOURCE_TYPE_TCMALLOC);
}
return 1;
« no previous file with comments | « no previous file | base/profiler/alternate_timer.h » ('j') | base/profiler/alternate_timer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698