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

Unified Diff: runtime/observatory/lib/src/service/object.dart

Issue 1527793004: Provide list of service protocol extensions in isolate and emit an event when one is registered (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/observatory/tests/service/developer_extension_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/service/object.dart
diff --git a/runtime/observatory/lib/src/service/object.dart b/runtime/observatory/lib/src/service/object.dart
index 8c9717faa4b309ea17fb9a407a6719bcf3440355..b6c239d3d1ec30f08b08e126db258557d1221873 100644
--- a/runtime/observatory/lib/src/service/object.dart
+++ b/runtime/observatory/lib/src/service/object.dart
@@ -1171,6 +1171,8 @@ class Isolate extends ServiceObjectOwner with Coverage {
@observable bool ioEnabled = false;
+ final List<String> extensionRPCs = new List<String>();
+
Map<String,ServiceObject> _cache = new Map<String,ServiceObject>();
final TagProfile tagProfile = new TagProfile(20);
@@ -1436,6 +1438,11 @@ class Isolate extends ServiceObjectOwner with Coverage {
if (savedStartTime == null) {
vm._buildIsolateList();
}
+
+ extensionRPCs.clear();
+ if (map['extensionRPCs'] != null) {
+ extensionRPCs.addAll(map['extensionRPCs']);
+ }
}
Future<TagProfile> updateTagProfile() {
@@ -1884,6 +1891,7 @@ class ServiceEvent extends ServiceObject {
static const kIsolateRunnable = 'IsolateRunnable';
static const kIsolateExit = 'IsolateExit';
static const kIsolateUpdate = 'IsolateUpdate';
+ static const kServiceExtensionAdded = 'ServiceExtensionAdded';
static const kPauseStart = 'PauseStart';
static const kPauseExit = 'PauseExit';
static const kPauseBreakpoint = 'PauseBreakpoint';
@@ -1910,6 +1918,7 @@ class ServiceEvent extends ServiceObject {
@observable DateTime timestamp;
@observable Breakpoint breakpoint;
@observable Frame topFrame;
+ @observable String extensionRPC;
@observable Instance exception;
@observable Instance asyncContinuation;
@observable bool atAsyncJump;
@@ -1952,6 +1961,9 @@ class ServiceEvent extends ServiceObject {
breakpoint = pauseBpts[0];
}
}
+ if (map['extensionRPC'] != null) {
+ extensionRPC = map['extensionRPC'];
+ }
topFrame = map['topFrame'];
if (map['exception'] != null) {
exception = map['exception'];
« no previous file with comments | « no previous file | runtime/observatory/tests/service/developer_extension_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698