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

Unified Diff: runtime/bin/vmservice/client/lib/src/elements/io_view.dart

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
Index: runtime/bin/vmservice/client/lib/src/elements/io_view.dart
diff --git a/runtime/bin/vmservice/client/lib/src/elements/io_view.dart b/runtime/bin/vmservice/client/lib/src/elements/io_view.dart
index c0196b240c0860f51656bcb41926a26f344cdd99..bd44740413b92025f991a320ebd2e3975e704d41 100644
--- a/runtime/bin/vmservice/client/lib/src/elements/io_view.dart
+++ b/runtime/bin/vmservice/client/lib/src/elements/io_view.dart
@@ -62,14 +62,16 @@ class IOHttpServerViewElement extends ObservatoryElement {
});
}
- void enteredView() {
- super.enteredView();
+ @override
+ void attached() {
+ super.attached();
// Start a timer to update the isolate summary once a second.
_updateTimer = new Timer(new Duration(seconds: 1), _updateHttpServer);
}
- void leftView() {
- super.leftView();
+ @override
+ void detached() {
+ super.detached();
if (_updateTimer != null) {
_updateTimer.cancel();
_updateTimer = null;
@@ -96,14 +98,16 @@ class IOHttpServerConnectionViewElement extends ObservatoryElement {
});
}
- void enteredView() {
- super.enteredView();
+ @override
+ void attached() {
+ super.attached();
// Start a timer to update the isolate summary once a second.
_updateTimer = new Timer(new Duration(seconds: 1), _updateHttpServer);
}
- void leftView() {
- super.leftView();
+ @override
+ void detached() {
+ super.detached();
if (_updateTimer != null) {
_updateTimer.cancel();
_updateTimer = null;
@@ -206,14 +210,16 @@ class IORandomAccessFileViewElement extends ObservatoryElement {
});
}
- void enteredView() {
- super.enteredView();
+ @override
+ void attached() {
+ super.attached();
// Start a timer to update the isolate summary once a second.
_updateTimer = new Timer(new Duration(seconds: 1), _updateFile);
}
- void leftView() {
- super.leftView();
+ @override
+ void detached() {
+ super.detached();
if (_updateTimer != null) {
_updateTimer.cancel();
_updateTimer = null;
@@ -259,14 +265,16 @@ class IOProcessViewElement extends ObservatoryElement {
});
}
- void enteredView() {
- super.enteredView();
+ @override
+ void attached() {
+ super.attached();
// Start a timer to update the isolate summary once a second.
_updateTimer = new Timer(new Duration(seconds: 1), _updateFile);
}
- void leftView() {
- super.leftView();
+ @override
+ void detached() {
+ super.detached();
if (_updateTimer != null) {
_updateTimer.cancel();
_updateTimer = null;

Powered by Google App Engine
This is Rietveld 408576698