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

Unified Diff: runtime/vm/isolate.h

Issue 342513004: Visual refresh of allocation profile page (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/class_table.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « runtime/vm/class_table.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698