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

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

Issue 2914283002: Observatory: (Closed)
Patch Set: Created 3 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/observatory/lib/src/repositories/object.dart
diff --git a/runtime/observatory/lib/src/repositories/object.dart b/runtime/observatory/lib/src/repositories/object.dart
index f1efddf916523b59d633b8bb1b514b97efb35d07..aaab2587d93bebcdbbec014858a1ad7a7e9a2275 100644
--- a/runtime/observatory/lib/src/repositories/object.dart
+++ b/runtime/observatory/lib/src/repositories/object.dart
@@ -6,10 +6,11 @@ part of repositories;
class ObjectRepository extends M.ObjectRepository {
ObjectRepository();
-
- Future<M.Object> get(M.IsolateRef i, String id) async {
+ Future<M.Object> get(M.IsolateRef i, String id,
+ {int count: S.kDefaultFieldLimit}) async {
S.Isolate isolate = i as S.Isolate;
assert(isolate != null);
- return (await isolate.getObject(id)) as S.HeapObject;
+ assert(count != null);
+ return (await isolate.getObject(id, count: count)) as S.HeapObject;
}
}

Powered by Google App Engine
This is Rietveld 408576698