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() { |