Index: runtime/vm/isolate.h |
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h |
index 17d9164a5aa1e87cf2fca6b37645c7db38a1e473..7770f1193874d3379bf4bc0a9164c7d2552cb0dd 100644 |
--- a/runtime/vm/isolate.h |
+++ b/runtime/vm/isolate.h |
@@ -465,6 +465,23 @@ class Isolate : public BaseIsolate { |
deopt_context_ = value; |
} |
+ void UpdateLastAllocationProfileAccumulatorResetTimestamp() { |
+ last_allocationprofile_accumulator_reset_timestamp_ = |
+ OS::GetCurrentTimeMillis(); |
+ } |
+ |
+ int64_t last_allocationprofile_accumulator_reset_timestamp() const { |
+ return last_allocationprofile_accumulator_reset_timestamp_; |
+ } |
+ |
+ void UpdateLastAllocationProfileGCTimestamp() { |
+ last_allocationprofile_gc_timestamp_ = OS::GetCurrentTimeMillis(); |
+ } |
+ |
+ int64_t last_allocationprofile_gc_timestamp() const { |
+ return last_allocationprofile_gc_timestamp_; |
+ } |
+ |
intptr_t BlockClassFinalization() { |
ASSERT(defer_finalization_count_ >= 0); |
return defer_finalization_count_++; |
@@ -607,6 +624,10 @@ class Isolate : public BaseIsolate { |
char* stacktrace_; |
intptr_t stack_frame_index_; |
+ // Timestamps of last operation via service. |
+ int64_t last_allocationprofile_accumulator_reset_timestamp_; |
+ int64_t last_allocationprofile_gc_timestamp_; |
+ |
bool cha_used_; |
// Ring buffer of objects assigned an id. |