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

Unified Diff: runtime/observatory/lib/src/elements/class_view.dart

Issue 1159783004: Misc Observatory patches: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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/observatory/lib/src/elements/class_view.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/elements/class_view.dart
diff --git a/runtime/observatory/lib/src/elements/class_view.dart b/runtime/observatory/lib/src/elements/class_view.dart
index 61bc06a12400309673c7486788bdcd63698c4094..a7cdf07b6b633e2453646f96866f594fab0a4705 100644
--- a/runtime/observatory/lib/src/elements/class_view.dart
+++ b/runtime/observatory/lib/src/elements/class_view.dart
@@ -44,13 +44,18 @@ class ClassViewElement extends ObservatoryElement {
});
}
+ void attached() {
+ library.variables.forEach((variable) => variable.reload());
+ }
+
Future refresh() {
- // TODO(turnidge): Reload all static fields as well, so we can detect
- // changes to their values.
instances = null;
retainedBytes = null;
mostRetained = null;
- return cls.reload();
+ var loads = [];
+ loads.add(cls.reload());
+ cls.variables.forEach((variable) => loads.add(variable.reload()));
+ return Future.wait(loads);
}
Future refreshCoverage() {
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/class_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698