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

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

Issue 2204563003: Converted Observatory cpu-profile element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged with master Created 4 years, 4 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) 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 // Some value smaller than the object ring, so requesting a large array 7 // Some value smaller than the object ring, so requesting a large array
8 // doesn't result in an expired ref because the elements lapped it in the 8 // doesn't result in an expired ref because the elements lapped it in the
9 // object ring. 9 // object ring.
10 const int kDefaultFieldLimit = 100; 10 const int kDefaultFieldLimit = 100;
(...skipping 1837 matching lines...) Expand 10 before | Expand all | Expand 10 after
1848 void observed() => _map.observed(); 1848 void observed() => _map.observed();
1849 void unobserved() => _map.unobserved(); 1849 void unobserved() => _map.unobserved();
1850 Stream<List<ChangeRecord>> get changes => _map.changes; 1850 Stream<List<ChangeRecord>> get changes => _map.changes;
1851 bool get hasObservers => _map.hasObservers; 1851 bool get hasObservers => _map.hasObservers;
1852 1852
1853 String toString() => "ServiceMap($_map)"; 1853 String toString() => "ServiceMap($_map)";
1854 } 1854 }
1855 1855
1856 M.ErrorKind stringToErrorKind(String value) { 1856 M.ErrorKind stringToErrorKind(String value) {
1857 switch(value) { 1857 switch(value) {
1858 case 'UnhandledException': return M.ErrorKind.UnhandledException; 1858 case 'UnhandledException': return M.ErrorKind.unhandledException;
1859 case 'LanguageError': return M.ErrorKind.UnhandledException; 1859 case 'LanguageError': return M.ErrorKind.unhandledException;
1860 case 'InternalError': return M.ErrorKind.InternalError; 1860 case 'InternalError': return M.ErrorKind.internalError;
1861 case 'TerminationError': return M.ErrorKind.TerminationError; 1861 case 'TerminationError': return M.ErrorKind.terminationError;
1862 } 1862 }
1863 Logger.root.severe('Unrecognized error kind: $value'); 1863 Logger.root.severe('Unrecognized error kind: $value');
1864 throw new FallThroughError(); 1864 throw new FallThroughError();
1865 } 1865 }
1866 1866
1867 /// A [DartError] is peered to a Dart Error object. 1867 /// A [DartError] is peered to a Dart Error object.
1868 class DartError extends ServiceObject implements M.Error { 1868 class DartError extends ServiceObject implements M.Error {
1869 DartError._empty(ServiceObject owner) : super._empty(owner); 1869 DartError._empty(ServiceObject owner) : super._empty(owner);
1870 1870
1871 M.ErrorKind kind; 1871 M.ErrorKind kind;
(...skipping 2222 matching lines...) Expand 10 before | Expand all | Expand 10 after
4094 var v = list[i]; 4094 var v = list[i];
4095 if ((v is ObservableMap) && _isServiceMap(v)) { 4095 if ((v is ObservableMap) && _isServiceMap(v)) {
4096 list[i] = owner.getFromMap(v); 4096 list[i] = owner.getFromMap(v);
4097 } else if (v is ObservableList) { 4097 } else if (v is ObservableList) {
4098 _upgradeObservableList(v, owner); 4098 _upgradeObservableList(v, owner);
4099 } else if (v is ObservableMap) { 4099 } else if (v is ObservableMap) {
4100 _upgradeObservableMap(v, owner); 4100 _upgradeObservableMap(v, owner);
4101 } 4101 }
4102 } 4102 }
4103 } 4103 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/repositories/sample_profile.dart ('k') | runtime/observatory/lib/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698