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 defined(TARGET_ARCH_DBC) || defined(HOST_OS_FUCHSIA) | 8 defined(TARGET_ARCH_DBC) || defined(HOST_OS_FUCHSIA) |
9 | 9 |
10 #include "vm/malloc_hooks.h" | 10 #include "vm/malloc_hooks.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 bool MallocHooks::Active() { | 44 bool MallocHooks::Active() { |
45 return false; | 45 return false; |
46 } | 46 } |
47 | 47 |
48 | 48 |
49 void MallocHooks::PrintToJSONObject(JSONObject* jsobj) { | 49 void MallocHooks::PrintToJSONObject(JSONObject* jsobj) { |
50 // Do nothing. | 50 // Do nothing. |
51 } | 51 } |
52 | 52 |
53 | 53 |
54 Sample* MallocHooks::GetSample(const void* ptr) { | |
55 return NULL; | |
56 } | |
57 | |
58 | |
59 intptr_t MallocHooks::allocation_count() { | 54 intptr_t MallocHooks::allocation_count() { |
60 return 0; | 55 return 0; |
61 } | 56 } |
62 | 57 |
63 | 58 |
64 intptr_t MallocHooks::heap_allocated_memory_in_bytes() { | 59 intptr_t MallocHooks::heap_allocated_memory_in_bytes() { |
65 return 0; | 60 return 0; |
66 } | 61 } |
67 | 62 |
68 } // namespace dart | 63 } // namespace dart |
69 | 64 |
70 #endif // !defined(DART_USE_TCMALLOC) || defined(PRODUCT) || | 65 #endif // !defined(DART_USE_TCMALLOC) || defined(PRODUCT) || |
71 // defined(TARGET_ARCH_DBC) || defined(HOST_OS_FUCHSIA) | 66 // defined(TARGET_ARCH_DBC) || defined(HOST_OS_FUCHSIA) |
OLD | NEW |