| 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 |
| 54 intptr_t MallocHooks::allocation_count() { | 59 intptr_t MallocHooks::allocation_count() { |
| 55 return 0; | 60 return 0; |
| 56 } | 61 } |
| 57 | 62 |
| 58 | 63 |
| 59 intptr_t MallocHooks::heap_allocated_memory_in_bytes() { | 64 intptr_t MallocHooks::heap_allocated_memory_in_bytes() { |
| 60 return 0; | 65 return 0; |
| 61 } | 66 } |
| 62 | 67 |
| 63 } // namespace dart | 68 } // namespace dart |
| 64 | 69 |
| 65 #endif // !defined(DART_USE_TCMALLOC) || defined(PRODUCT) || | 70 #endif // !defined(DART_USE_TCMALLOC) || defined(PRODUCT) || |
| 66 // defined(TARGET_ARCH_DBC) || defined(HOST_OS_FUCHSIA) | 71 // defined(TARGET_ARCH_DBC) || defined(HOST_OS_FUCHSIA) |
| OLD | NEW |