| 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() { | 28 bool MallocHooks::Active() { |
| 29 return false; | 29 return false; |
| 30 } | 30 } |
| 31 | 31 |
| 32 | 32 |
| 33 void MallocHooks::PrintToJSONObject(JSONObject* jsobj) { |
| 34 // Do nothing. |
| 35 } |
| 36 |
| 37 |
| 33 intptr_t MallocHooks::allocation_count() { | 38 intptr_t MallocHooks::allocation_count() { |
| 34 return 0; | 39 return 0; |
| 35 } | 40 } |
| 36 | 41 |
| 37 | 42 |
| 38 intptr_t MallocHooks::heap_allocated_memory_in_bytes() { | 43 intptr_t MallocHooks::heap_allocated_memory_in_bytes() { |
| 39 return 0; | 44 return 0; |
| 40 } | 45 } |
| 41 | 46 |
| 42 } // namespace dart | 47 } // namespace dart |
| 43 | 48 |
| 44 #endif // defined(DART_USE_TCMALLOC) || defined(PRODUCT) | 49 #endif // defined(DART_USE_TCMALLOC) || defined(PRODUCT) |
| OLD | NEW |