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

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

Issue 2267863002: Converted Observatory ports-page element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixed indentation 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/observatory/lib/src/repositories/ports.dart ('k') | runtime/observatory/observatory_sources.gypi » ('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 ddaa39623175a9bcabac0fd4853423ba23d555f2..d3daed1115288bb62596c738cd7264e303d38cac 100644
--- a/runtime/observatory/lib/src/service/object.dart
+++ b/runtime/observatory/lib/src/service/object.dart
@@ -1120,6 +1120,23 @@ class RetainingPathItem implements M.RetainingPathItem {
parentWordOffset = map['_parentWordOffset'];
}
+class Ports implements M.Ports {
+ final Iterable<Port> elements;
+
+ Ports(ServiceMap map)
+ : this.elements = map['ports']
+ .map((rmap) => new Port(rmap));
+}
+
+class Port implements M.Port {
+ final String name;
+ final HeapObject handler;
+
+ Port(ServiceMap map)
+ : name = map['name'],
+ handler = map['handler'];
+}
+
class HeapSpace extends Observable implements M.HeapSpace {
@observable int used = 0;
@observable int capacity = 0;
« no previous file with comments | « runtime/observatory/lib/src/repositories/ports.dart ('k') | runtime/observatory/observatory_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698