Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: runtime/vm/malloc_hooks_unsupported.cc

Issue 2829833003: [Fuchsia] Grab the number of malloc'd bytes from jemalloc (Closed)
Patch Set: Fix guards Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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(DART_USE_JEMALLOC)) || \
8 defined(TARGET_ARCH_DBC) || defined(HOST_OS_FUCHSIA) 8 defined(PRODUCT) || defined(TARGET_ARCH_DBC)
9 9
10 #include "vm/malloc_hooks.h" 10 #include "vm/malloc_hooks.h"
11 11
12 namespace dart { 12 namespace dart {
13 13
14 void MallocHooks::InitOnce() { 14 void MallocHooks::InitOnce() {
15 // Do nothing. 15 // Do nothing.
16 } 16 }
17 17
18 18
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 return 0; 60 return 0;
61 } 61 }
62 62
63 63
64 intptr_t MallocHooks::heap_allocated_memory_in_bytes() { 64 intptr_t MallocHooks::heap_allocated_memory_in_bytes() {
65 return 0; 65 return 0;
66 } 66 }
67 67
68 } // namespace dart 68 } // namespace dart
69 69
70 #endif // !defined(DART_USE_TCMALLOC) || defined(PRODUCT) || 70 #endif // !defined(DART_USE_TCMALLOC) && ...
71 // defined(TARGET_ARCH_DBC) || defined(HOST_OS_FUCHSIA)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698