OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "platform/globals.h" | 5 #if defined(DART_USE_TCMALLOC) |
6 | |
7 #if !defined(DART_USE_TCMALLOC) || defined(PRODUCT) | |
8 | 6 |
9 #include "vm/malloc_hooks.h" | 7 #include "vm/malloc_hooks.h" |
10 | 8 |
11 namespace dart { | 9 namespace dart { |
12 | 10 |
13 void MallocHooks::InitOnce() { | 11 void MallocHooks::Init() { |
14 // Do nothing. | 12 // TODO(bkonyi): Implement |
15 } | |
16 | |
17 | |
18 void MallocHooks::TearDown() { | |
19 // Do nothing. | |
20 } | |
21 | |
22 | |
23 void MallocHooks::ResetStats() { | |
24 // Do nothing. | |
25 } | |
26 | |
27 | |
28 intptr_t MallocHooks::allocation_count() { | |
29 return 0; | |
30 } | |
31 | |
32 | |
33 intptr_t MallocHooks::heap_allocated_memory_in_bytes() { | |
34 return 0; | |
35 } | 13 } |
36 | 14 |
37 } // namespace dart | 15 } // namespace dart |
38 | 16 |
39 #endif // defined(DART_USE_TCMALLOC) || defined(PRODUCT) | 17 #endif // defined(DART_USE_TCMALLOC) |
OLD | NEW |