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

Unified Diff: runtime/observatory/lib/src/models/objects/class.dart

Issue 2294073003: Converted Observatory class-view element (Closed)
Patch Set: Addressed comments 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
Index: runtime/observatory/lib/src/models/objects/class.dart
diff --git a/runtime/observatory/lib/src/models/objects/class.dart b/runtime/observatory/lib/src/models/objects/class.dart
index ae8e241b9eab4ab5e1c6a0d0fcc70de02dcbdbdc..a801a32fda9c01fa09def75faa53968b199c5bb2 100644
--- a/runtime/observatory/lib/src/models/objects/class.dart
+++ b/runtime/observatory/lib/src/models/objects/class.dart
@@ -23,18 +23,18 @@ abstract class Class extends Object implements ClassRef {
/// [internal]
bool get isPatch;
- /// The library which contains this class.
+ /// [optional] The library which contains this class.
LibraryRef get library;
- /// The location of this class in the source code.[optional]
+ /// [optional] The location of this class in the source code.
SourceLocation get location;
- /// The superclass of this class, if any. [optional]
+ /// [optional] The superclass of this class, if any.
ClassRef get superclass;
- /// The supertype for this class, if any.
+ /// [optional]The supertype for this class, if any.
///
- /// The value will be of the kind: Type. [optional]
+ /// The value will be of the kind: Type.
InstanceRef get superType;
/// A list of interface types for this class.
@@ -44,17 +44,33 @@ abstract class Class extends Object implements ClassRef {
/// The mixin type for this class, if any.
///
- /// The value will be of the kind: Type. [optional]
+ /// [optional] The value will be of the kind: Type.
InstanceRef get mixin;
/// A list of fields in this class. Does not include fields from
/// superclasses.
- //List<FieldRef> get fields;
+ Iterable<FieldRef> get fields;
/// A list of functions in this class. Does not include functions
/// from superclasses.
- //List<FunctionRef> get functions;
+ Iterable<FunctionRef> get functions;
// A list of subclasses of this class.
Iterable<ClassRef> get subclasses;
+
+ bool get hasAllocations;
+ bool get hasNoAllocations;
+
+ Allocations get newSpace;
+ Allocations get oldSpace;
+
+ bool get traceAllocations;
+}
+
+abstract class InstanceSet {
+ int get count;
+ Iterable<ObjectRef> get samples;
+}
+
+abstract class TopRetainedInstances {
}

Powered by Google App Engine
This is Rietveld 408576698