| Index: runtime/vm/malloc_hooks_jemalloc.cc
|
| diff --git a/runtime/vm/malloc_hooks_jemalloc.cc b/runtime/vm/malloc_hooks_jemalloc.cc
|
| index b2b5bff657e73b524fc1506e34e6e1bb99426ef9..7add5463de9b501d3163fb21aef8c5a35da403a4 100644
|
| --- a/runtime/vm/malloc_hooks_jemalloc.cc
|
| +++ b/runtime/vm/malloc_hooks_jemalloc.cc
|
| @@ -17,12 +17,10 @@ void MallocHooks::InitOnce() {
|
| // Do nothing.
|
| }
|
|
|
| -
|
| void MallocHooks::TearDown() {
|
| // Do nothing.
|
| }
|
|
|
| -
|
| void MallocHooks::PrintToJSONObject(JSONObject* jsobj) {
|
| // Here, we ignore the value of FLAG_profiler_native_memory because we can
|
| // gather this information cheaply without hooking into every call to the
|
| @@ -32,7 +30,6 @@ void MallocHooks::PrintToJSONObject(JSONObject* jsobj) {
|
| jsobj->AddProperty("_heapAllocationCount", allocation_count());
|
| }
|
|
|
| -
|
| intptr_t MallocHooks::heap_allocated_memory_in_bytes() {
|
| uint64_t epoch = 1;
|
| size_t epoch_sz = sizeof(epoch);
|
| @@ -50,37 +47,30 @@ intptr_t MallocHooks::heap_allocated_memory_in_bytes() {
|
| return allocated;
|
| }
|
|
|
| -
|
| intptr_t MallocHooks::allocation_count() {
|
| return 0;
|
| }
|
|
|
| -
|
| bool MallocHooks::ProfilingEnabled() {
|
| return false;
|
| }
|
|
|
| -
|
| bool MallocHooks::stack_trace_collection_enabled() {
|
| return false;
|
| }
|
|
|
| -
|
| void MallocHooks::set_stack_trace_collection_enabled(bool enabled) {
|
| // Do nothing.
|
| }
|
|
|
| -
|
| void MallocHooks::ResetStats() {
|
| // Do nothing.
|
| }
|
|
|
| -
|
| bool MallocHooks::Active() {
|
| return false;
|
| }
|
|
|
| -
|
| Sample* MallocHooks::GetSample(const void* ptr) {
|
| return NULL;
|
| }
|
|
|