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

Unified Diff: runtime/vm/malloc_hooks.h

Issue 2678313003: Fix for issue 28638 - flakiness on dartkp-dart-precompiled caused by MallocHooks (Closed)
Patch Set: Address self review comments. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/malloc_hooks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/malloc_hooks.h
diff --git a/runtime/vm/malloc_hooks.h b/runtime/vm/malloc_hooks.h
index 852c7992ec80c696b37a8d35ea0a0afa256fe3b4..78132c756e13f9d9f04cd91e9aed0f64ca3eee09 100644
--- a/runtime/vm/malloc_hooks.h
+++ b/runtime/vm/malloc_hooks.h
@@ -5,23 +5,23 @@
#ifndef RUNTIME_VM_MALLOC_HOOKS_H_
#define RUNTIME_VM_MALLOC_HOOKS_H_
+#include "vm/allocation.h"
#include "vm/globals.h"
namespace dart {
-class MallocHooks {
+class JSONObject;
+
+class MallocHooks : public AllStatic {
public:
static void InitOnce();
static void TearDown();
static void ResetStats();
- static bool Initialized();
+ static bool Active();
+ static void PrintToJSONObject(JSONObject* jsobj);
static intptr_t allocation_count();
static intptr_t heap_allocated_memory_in_bytes();
-
- private:
- DISALLOW_ALLOCATION();
- DISALLOW_IMPLICIT_CONSTRUCTORS(MallocHooks);
};
} // namespace dart
« no previous file with comments | « no previous file | runtime/vm/malloc_hooks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698