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

Unified Diff: runtime/vm/malloc_hooks_jemalloc.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/longjump_test.cc ('k') | runtime/vm/malloc_hooks_tcmalloc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « runtime/vm/longjump_test.cc ('k') | runtime/vm/malloc_hooks_tcmalloc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698