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

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

Issue 2667743004: Surfaced native heap memory allocation information to the Observatory (Closed)
Patch Set: Added method to check if MallocHooks have been initialized. Created 3 years, 10 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
« no previous file with comments | « runtime/vm/malloc_hooks.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(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)
OLDNEW
« no previous file with comments | « runtime/vm/malloc_hooks.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698