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

Side by Side Diff: runtime/observatory/lib/src/elements/isolate_view.dart

Issue 1150303004: Switch to using SourceLocation universally in service protocol. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: post merge Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library isolate_view_element; 5 library isolate_view_element;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'observatory_element.dart'; 8 import 'observatory_element.dart';
9 import 'package:observatory/app.dart'; 9 import 'package:observatory/app.dart';
10 import 'package:observatory/service.dart'; 10 import 'package:observatory/service.dart';
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 _updateTimer = new Timer(new Duration(seconds: 1), _updateTagProfile); 96 _updateTimer = new Timer(new Duration(seconds: 1), _updateTagProfile);
97 } 97 }
98 }); 98 });
99 } 99 }
100 100
101 @override 101 @override
102 void attached() { 102 void attached() {
103 super.attached(); 103 super.attached();
104 // Start a timer to update the isolate summary once a second. 104 // Start a timer to update the isolate summary once a second.
105 _updateTimer = new Timer(new Duration(seconds: 1), _updateTagProfile); 105 _updateTimer = new Timer(new Duration(seconds: 1), _updateTagProfile);
106 if (isolate.topFrame != null) {
107 isolate.topFrame.function.load();
108 }
106 } 109 }
107 110
108 @override 111 @override
109 void detached() { 112 void detached() {
110 super.detached(); 113 super.detached();
111 if (_updateTimer != null) { 114 if (_updateTimer != null) {
112 _updateTimer.cancel(); 115 _updateTimer.cancel();
113 _updateTimer = null; 116 _updateTimer = null;
114 } 117 }
115 } 118 }
116 119
117 void _drawTagProfileChart() { 120 void _drawTagProfileChart() {
118 var element = shadowRoot.querySelector('#tagProfileChart'); 121 var element = shadowRoot.querySelector('#tagProfileChart');
119 if (element != null) { 122 if (element != null) {
120 tagProfileChart.draw(element); 123 tagProfileChart.draw(element);
121 } 124 }
122 } 125 }
123 126
124 Future refresh() { 127 Future refresh() async {
125 return isolate.reload(); 128 await isolate.reload();
129 if (isolate.topFrame != null) {
130 await isolate.topFrame.function.load();
131 }
126 } 132 }
127 133
128 Future refreshCoverage() { 134 Future refreshCoverage() {
129 return isolate.refreshCoverage(); 135 return isolate.refreshCoverage();
130 } 136 }
131 } 137 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/isolate_summary.html ('k') | runtime/observatory/lib/src/elements/isolate_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698