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

Unified Diff: runtime/bin/vmservice/client/lib/src/service/object.dart

Issue 286903010: Add dart:io view to the observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: runtime/bin/vmservice/client/lib/src/service/object.dart
diff --git a/runtime/bin/vmservice/client/lib/src/service/object.dart b/runtime/bin/vmservice/client/lib/src/service/object.dart
index fc34a83b24ac8378d8612e2b52e043b5ab354a7d..5bee1593abc7f9da49c538acc351c7d98b1ea611 100644
--- a/runtime/bin/vmservice/client/lib/src/service/object.dart
+++ b/runtime/bin/vmservice/client/lib/src/service/object.dart
@@ -500,6 +500,7 @@ class Isolate extends ServiceObjectOwner {
@observable bool running = false;
@observable bool idle = false;
@observable bool loading = true;
+ @observable bool ioEnabled = false;
Map<String,ServiceObject> _cache = new Map<String,ServiceObject>();
final TagProfile tagProfile = new TagProfile(20);
@@ -699,6 +700,15 @@ class Isolate extends ServiceObjectOwner {
newHeapCapacity = map['heap']['capacityNew'];
oldHeapCapacity = map['heap']['capacityOld'];
+ List features = map['features'];
+ print(features);
Cutch 2014/05/23 05:51:37 remove before commit
Anders Johnsen 2014/05/23 05:59:13 Done.
+ if (features != null) {
+ for (var feature in features) {
+ if (feature == 'io') {
+ ioEnabled = true;
+ }
+ }
+ }
// Isolate status
pauseEvent = map['pauseEvent'];
running = (!_isPaused && map['topFrame'] != null);

Powered by Google App Engine
This is Rietveld 408576698