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

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

Issue 2771293003: Resubmission of native memory allocation info surfacing in Observatory. Fixed crashing tests and st… (Closed)
Patch Set: Added page to Observatory to display native memory allocation information. Created 3 years, 9 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_test.cc ('k') | runtime/vm/malloc_hooks_x64.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 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
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)
OLDNEW
« no previous file with comments | « runtime/vm/malloc_hooks_test.cc ('k') | runtime/vm/malloc_hooks_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698