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

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

Issue 1537523002: Add dart:developer.postEvent for posting events to the service protocol from Dart code (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 | « runtime/lib/developer.dart ('k') | 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 b6c239d3d1ec30f08b08e126db258557d1221873..e45cb8d78b6d5a8b294d73514c0d1f734f4f300f 100644
--- a/runtime/observatory/lib/src/service/object.dart
+++ b/runtime/observatory/lib/src/service/object.dart
@@ -1137,6 +1137,8 @@ class HeapSnapshot {
/// State for a running isolate.
class Isolate extends ServiceObjectOwner with Coverage {
static const kLoggingStream = '_Logging';
+ static const kExtensionStream = 'Extension';
+
@reflectable VM get vm => owner;
@reflectable Isolate get isolate => this;
@observable int number;
@@ -1907,6 +1909,7 @@ class ServiceEvent extends ServiceObject {
static const kDebuggerSettingsUpdate = '_DebuggerSettingsUpdate';
static const kConnectionClosed = 'ConnectionClosed';
static const kLogging = '_Logging';
+ static const kExtension = 'Extension';
ServiceEvent._empty(ServiceObjectOwner owner) : super._empty(owner);
@@ -1929,6 +1932,8 @@ class ServiceEvent extends ServiceObject {
@observable String exceptions;
@observable String bytesAsString;
@observable Map logRecord;
+ @observable String extensionKind;
+ @observable Map extensionData;
int chunkIndex, chunkCount, nodeCount;
@@ -2006,6 +2011,10 @@ class ServiceEvent extends ServiceObject {
new DateTime.fromMillisecondsSinceEpoch(logRecord['time']);
logRecord['level'] = _findLogLevel(logRecord['level']);
}
+ if (map['extensionKind'] != null) {
+ extensionKind = map['extensionKind'];
+ extensionData = map['extensionData'];
+ }
}
String toString() {
« no previous file with comments | « runtime/lib/developer.dart ('k') | runtime/observatory/tests/service/developer_extension_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698