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

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

Issue 965593002: Improved profiler view and inclusive profile tree (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
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 observatory_element; 5 library observatory_element;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:html'; 8 import 'dart:html';
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } 112 }
113 return url; 113 return url;
114 } 114 }
115 115
116 /// Create a link that can be consumed by [goto]. 116 /// Create a link that can be consumed by [goto].
117 String gotoLink(String url, [ServiceObject obj]) { 117 String gotoLink(String url, [ServiceObject obj]) {
118 return app.locationManager.makeLink(makeLink(url, obj)); 118 return app.locationManager.makeLink(makeLink(url, obj));
119 } 119 }
120 120
121 String formatTimePrecise(double time) => Utils.formatTimePrecise(time); 121 String formatTimePrecise(double time) => Utils.formatTimePrecise(time);
122 122 String formatTimeMilliseconds(int millis) =>
123 Utils.formatTimeMilliseconds(millis);
123 String formatTime(double time) => Utils.formatTime(time); 124 String formatTime(double time) => Utils.formatTime(time);
124 125
125 String formatSeconds(double x) => Utils.formatSeconds(x); 126 String formatSeconds(double x) => Utils.formatSeconds(x);
126 127
127 128
128 String formatSize(int bytes) => Utils.formatSize(bytes); 129 String formatSize(int bytes) => Utils.formatSize(bytes);
129 130
130 String fileAndLine(Map frame) { 131 String fileAndLine(Map frame) {
131 var file = frame['script'].name; 132 var file = frame['script'].name;
132 var shortFile = file.substring(file.lastIndexOf('/') + 1); 133 var shortFile = file.substring(file.lastIndexOf('/') + 1);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 var anchorElement = new AnchorElement(); 177 var anchorElement = new AnchorElement();
177 anchorElement.href = href; 178 anchorElement.href = href;
178 anchorElement.text = label; 179 anchorElement.text = label;
179 if (title != null) { 180 if (title != null) {
180 anchorElement.title = title; 181 anchorElement.title = title;
181 } 182 }
182 anchorElement.onClick.listen(onClickGoto); 183 anchorElement.onClick.listen(onClickGoto);
183 shadowRoot.children.add(anchorElement); 184 shadowRoot.children.add(anchorElement);
184 } 185 }
185 } 186 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/function_ref.dart ('k') | runtime/observatory/lib/src/service/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698