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

Side by Side Diff: base/allocator/allocator_extension.cc

Issue 1408403004: [tracing] Fix resident size of malloc dump provider when tcmalloc is used (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit. Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « base/allocator/allocator_extension.h ('k') | base/allocator/allocator_extension_thunks.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/allocator/allocator_extension.h" 5 #include "base/allocator/allocator_extension.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace base { 9 namespace base {
10 namespace allocator { 10 namespace allocator {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 thunks::SetGetStatsFunction(get_stats_function); 45 thunks::SetGetStatsFunction(get_stats_function);
46 } 46 }
47 47
48 void SetReleaseFreeMemoryFunction( 48 void SetReleaseFreeMemoryFunction(
49 thunks::ReleaseFreeMemoryFunction release_free_memory_function) { 49 thunks::ReleaseFreeMemoryFunction release_free_memory_function) {
50 DCHECK_EQ(thunks::GetReleaseFreeMemoryFunction(), 50 DCHECK_EQ(thunks::GetReleaseFreeMemoryFunction(),
51 reinterpret_cast<thunks::ReleaseFreeMemoryFunction>(NULL)); 51 reinterpret_cast<thunks::ReleaseFreeMemoryFunction>(NULL));
52 thunks::SetReleaseFreeMemoryFunction(release_free_memory_function); 52 thunks::SetReleaseFreeMemoryFunction(release_free_memory_function);
53 } 53 }
54 54
55 void SetGetNumericPropertyFunction(
56 thunks::GetNumericPropertyFunction get_numeric_property_function) {
57 DCHECK_EQ(thunks::GetGetNumericPropertyFunction(),
58 reinterpret_cast<thunks::GetNumericPropertyFunction>(NULL));
59 thunks::SetGetNumericPropertyFunction(get_numeric_property_function);
60 }
61
55 } // namespace allocator 62 } // namespace allocator
56 } // namespace base 63 } // namespace base
OLDNEW
« no previous file with comments | « base/allocator/allocator_extension.h ('k') | base/allocator/allocator_extension_thunks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698