Index: runtime/vm/isolate.h |
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h |
index 10f44f036ae49394aa05a8c13cc75469422bebb3..60c610f66617dc64c5fa1b0ff1e1ec5fd0e4d241 100644 |
--- a/runtime/vm/isolate.h |
+++ b/runtime/vm/isolate.h |
@@ -178,7 +178,7 @@ class Isolate : public BaseIsolate { |
ThreadRegistry* thread_registry() const { return thread_registry_; } |
SafepointHandler* safepoint_handler() const { return safepoint_handler_; } |
- |
+ uint memory_high_watermark() const { return memory_high_watermark_; } |
ClassTable* class_table() { return &class_table_; } |
static intptr_t class_table_offset() { |
return OFFSET_OF(Isolate, class_table_); |
@@ -691,6 +691,10 @@ class Isolate : public BaseIsolate { |
bool is_mutator, |
bool bypass_safepoint = false); |
+ // Updates the maximum memory usage in bytes of all zones in all threads of |
+ // the current isolate. |
+ void UpdateMemoryHighWatermark(); |
+ |
// DEPRECATED: Use Thread's methods instead. During migration, these default |
// to using the mutator thread (which must also be the current thread). |
Zone* current_zone() const { |
@@ -711,6 +715,7 @@ class Isolate : public BaseIsolate { |
ThreadRegistry* thread_registry_; |
SafepointHandler* safepoint_handler_; |
+ uint memory_high_watermark_; |
Dart_MessageNotifyCallback message_notify_callback_; |
char* name_; |
char* debugger_name_; |