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 #include "platform/globals.h" |
6 | 6 |
7 #if !defined(DART_USE_TCMALLOC) || defined(PRODUCT) | 7 #if !defined(DART_USE_TCMALLOC) || defined(PRODUCT) |
8 | 8 |
9 #include "vm/malloc_hooks.h" | 9 #include "vm/malloc_hooks.h" |
10 | 10 |
11 namespace dart { | 11 namespace dart { |
12 | 12 |
13 void MallocHooks::InitOnce() { | 13 void MallocHooks::InitOnce() { |
14 // Do nothing. | 14 // Do nothing. |
15 } | 15 } |
16 | 16 |
17 | 17 |
18 void MallocHooks::TearDown() { | 18 void MallocHooks::TearDown() { |
19 // Do nothing. | 19 // Do nothing. |
20 } | 20 } |
21 | 21 |
22 | 22 |
23 void MallocHooks::ResetStats() { | 23 void MallocHooks::ResetStats() { |
24 // Do nothing. | 24 // Do nothing. |
25 } | 25 } |
26 | 26 |
27 | 27 |
| 28 bool MallocHooks::Initialized() { |
| 29 return false; |
| 30 } |
| 31 |
| 32 |
28 intptr_t MallocHooks::allocation_count() { | 33 intptr_t MallocHooks::allocation_count() { |
29 return 0; | 34 return 0; |
30 } | 35 } |
31 | 36 |
32 | 37 |
33 intptr_t MallocHooks::heap_allocated_memory_in_bytes() { | 38 intptr_t MallocHooks::heap_allocated_memory_in_bytes() { |
34 return 0; | 39 return 0; |
35 } | 40 } |
36 | 41 |
37 } // namespace dart | 42 } // namespace dart |
38 | 43 |
39 #endif // defined(DART_USE_TCMALLOC) || defined(PRODUCT) | 44 #endif // defined(DART_USE_TCMALLOC) || defined(PRODUCT) |
OLD | NEW |