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

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

Issue 2072543002: First cut at _spawnUri rpc in the vm service. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: cleanup pre code review Created 4 years, 5 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 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after
1879 1879
1880 /// A [ServiceEvent] is an asynchronous event notification from the vm. 1880 /// A [ServiceEvent] is an asynchronous event notification from the vm.
1881 class ServiceEvent extends ServiceObject { 1881 class ServiceEvent extends ServiceObject {
1882 /// The possible 'kind' values. 1882 /// The possible 'kind' values.
1883 static const kVMUpdate = 'VMUpdate'; 1883 static const kVMUpdate = 'VMUpdate';
1884 static const kIsolateStart = 'IsolateStart'; 1884 static const kIsolateStart = 'IsolateStart';
1885 static const kIsolateRunnable = 'IsolateRunnable'; 1885 static const kIsolateRunnable = 'IsolateRunnable';
1886 static const kIsolateExit = 'IsolateExit'; 1886 static const kIsolateExit = 'IsolateExit';
1887 static const kIsolateUpdate = 'IsolateUpdate'; 1887 static const kIsolateUpdate = 'IsolateUpdate';
1888 static const kIsolateReload = 'IsolateReload'; 1888 static const kIsolateReload = 'IsolateReload';
1889 static const kIsolateSpawn = 'IsolateSpawn';
1889 static const kServiceExtensionAdded = 'ServiceExtensionAdded'; 1890 static const kServiceExtensionAdded = 'ServiceExtensionAdded';
1890 static const kPauseStart = 'PauseStart'; 1891 static const kPauseStart = 'PauseStart';
1891 static const kPauseExit = 'PauseExit'; 1892 static const kPauseExit = 'PauseExit';
1892 static const kPauseBreakpoint = 'PauseBreakpoint'; 1893 static const kPauseBreakpoint = 'PauseBreakpoint';
1893 static const kPauseInterrupted = 'PauseInterrupted'; 1894 static const kPauseInterrupted = 'PauseInterrupted';
1894 static const kPauseException = 'PauseException'; 1895 static const kPauseException = 'PauseException';
1895 static const kNone = 'None'; 1896 static const kNone = 'None';
1896 static const kResume = 'Resume'; 1897 static const kResume = 'Resume';
1897 static const kBreakpointAdded = 'BreakpointAdded'; 1898 static const kBreakpointAdded = 'BreakpointAdded';
1898 static const kBreakpointResolved = 'BreakpointResolved'; 1899 static const kBreakpointResolved = 'BreakpointResolved';
(...skipping 23 matching lines...) Expand all
1922 @observable ServiceObject inspectee; 1923 @observable ServiceObject inspectee;
1923 @observable ByteData data; 1924 @observable ByteData data;
1924 @observable int count; 1925 @observable int count;
1925 @observable String reason; 1926 @observable String reason;
1926 @observable String exceptions; 1927 @observable String exceptions;
1927 @observable String bytesAsString; 1928 @observable String bytesAsString;
1928 @observable Map logRecord; 1929 @observable Map logRecord;
1929 @observable String extensionKind; 1930 @observable String extensionKind;
1930 @observable Map extensionData; 1931 @observable Map extensionData;
1931 @observable List timelineEvents; 1932 @observable List timelineEvents;
1933 @observable String spawnToken;
1934 @observable String spawnError;
1932 1935
1933 int chunkIndex, chunkCount, nodeCount; 1936 int chunkIndex, chunkCount, nodeCount;
1934 1937
1935 @observable bool get isPauseEvent { 1938 @observable bool get isPauseEvent {
1936 return (kind == kPauseStart || 1939 return (kind == kPauseStart ||
1937 kind == kPauseExit || 1940 kind == kPauseExit ||
1938 kind == kPauseBreakpoint || 1941 kind == kPauseBreakpoint ||
1939 kind == kPauseInterrupted || 1942 kind == kPauseInterrupted ||
1940 kind == kPauseException || 1943 kind == kPauseException ||
1941 kind == kNone); 1944 kind == kNone);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
2004 new DateTime.fromMillisecondsSinceEpoch(logRecord['time']); 2007 new DateTime.fromMillisecondsSinceEpoch(logRecord['time']);
2005 logRecord['level'] = _findLogLevel(logRecord['level']); 2008 logRecord['level'] = _findLogLevel(logRecord['level']);
2006 } 2009 }
2007 if (map['extensionKind'] != null) { 2010 if (map['extensionKind'] != null) {
2008 extensionKind = map['extensionKind']; 2011 extensionKind = map['extensionKind'];
2009 extensionData = map['extensionData']; 2012 extensionData = map['extensionData'];
2010 } 2013 }
2011 if (map['timelineEvents'] != null) { 2014 if (map['timelineEvents'] != null) {
2012 timelineEvents = map['timelineEvents']; 2015 timelineEvents = map['timelineEvents'];
2013 } 2016 }
2017 if (map['spawnToken'] != null) {
2018 spawnToken = map['spawnToken'];
2019 }
2020 if (map['spawnError'] != null) {
2021 spawnError = map['spawnError'];
2022 }
2014 } 2023 }
2015 2024
2016 String toString() { 2025 String toString() {
2017 var ownerName = owner.id != null ? owner.id.toString() : owner.name; 2026 var ownerName = owner.id != null ? owner.id.toString() : owner.name;
2018 if (data == null) { 2027 if (data == null) {
2019 return "ServiceEvent(owner='${ownerName}', kind='${kind}', " 2028 return "ServiceEvent(owner='${ownerName}', kind='${kind}', "
2020 "time=${timestamp})"; 2029 "time=${timestamp})";
2021 } else { 2030 } else {
2022 return "ServiceEvent(owner='${ownerName}', kind='${kind}', " 2031 return "ServiceEvent(owner='${ownerName}', kind='${kind}', "
2023 "data.lengthInBytes=${data.lengthInBytes}, time=${timestamp})"; 2032 "data.lengthInBytes=${data.lengthInBytes}, time=${timestamp})";
(...skipping 2091 matching lines...) Expand 10 before | Expand all | Expand 10 after
4115 var v = list[i]; 4124 var v = list[i];
4116 if ((v is ObservableMap) && _isServiceMap(v)) { 4125 if ((v is ObservableMap) && _isServiceMap(v)) {
4117 list[i] = owner.getFromMap(v); 4126 list[i] = owner.getFromMap(v);
4118 } else if (v is ObservableList) { 4127 } else if (v is ObservableList) {
4119 _upgradeObservableList(v, owner); 4128 _upgradeObservableList(v, owner);
4120 } else if (v is ObservableMap) { 4129 } else if (v is ObservableMap) {
4121 _upgradeObservableMap(v, owner); 4130 _upgradeObservableMap(v, owner);
4122 } 4131 }
4123 } 4132 }
4124 } 4133 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698