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

Side by Side Diff: runtime/observatory/lib/src/service/object.dart

Issue 1013563002: CPU profile displayed in three tables with a tree (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 part of service; 5 part of service;
6 6
7 /// A [ServiceObject] represents a persistent object within the vm. 7 /// A [ServiceObject] represents a persistent object within the vm.
8 abstract class ServiceObject extends Observable { 8 abstract class ServiceObject extends Observable {
9 static int LexicalSortName(ServiceObject o1, ServiceObject o2) { 9 static int LexicalSortName(ServiceObject o1, ServiceObject o2) {
10 return o1.name.compareTo(o2.name); 10 return o1.name.compareTo(o2.name);
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 new StreamController.broadcast(); 370 new StreamController.broadcast();
371 371
372 void postServiceEvent(String response, ByteData data) { 372 void postServiceEvent(String response, ByteData data) {
373 var map; 373 var map;
374 try { 374 try {
375 map = _parseJSON(response); 375 map = _parseJSON(response);
376 assert(!map.containsKey('_data')); 376 assert(!map.containsKey('_data'));
377 if (data != null) { 377 if (data != null) {
378 map['_data'] = data; 378 map['_data'] = data;
379 } 379 }
380 } catch (e, st) { 380 } catch (_) {
381 Logger.root.severe('Ignoring malformed event response: ${response}'); 381 Logger.root.severe('Ignoring malformed event response: ${response}');
382 return; 382 return;
383 } 383 }
384 if (map['type'] != 'ServiceEvent') { 384 if (map['type'] != 'ServiceEvent') {
385 Logger.root.severe( 385 Logger.root.severe(
386 "Expected 'ServiceEvent' but found '${map['type']}'"); 386 "Expected 'ServiceEvent' but found '${map['type']}'");
387 return; 387 return;
388 } 388 }
389 389
390 var eventIsolate = map['isolate']; 390 var eventIsolate = map['isolate'];
(...skipping 2542 matching lines...) Expand 10 before | Expand all | Expand 10 after
2933 var v = list[i]; 2933 var v = list[i];
2934 if ((v is ObservableMap) && _isServiceMap(v)) { 2934 if ((v is ObservableMap) && _isServiceMap(v)) {
2935 list[i] = owner.getFromMap(v); 2935 list[i] = owner.getFromMap(v);
2936 } else if (v is ObservableList) { 2936 } else if (v is ObservableList) {
2937 _upgradeObservableList(v, owner); 2937 _upgradeObservableList(v, owner);
2938 } else if (v is ObservableMap) { 2938 } else if (v is ObservableMap) {
2939 _upgradeObservableMap(v, owner); 2939 _upgradeObservableMap(v, owner);
2940 } 2940 }
2941 } 2941 }
2942 } 2942 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698