Index: runtime/observatory/lib/src/models/objects/sample_profile.dart |
diff --git a/runtime/observatory/lib/src/models/objects/sample_profile.dart b/runtime/observatory/lib/src/models/objects/sample_profile.dart |
index 5c5a98393c0e14a51bc214f9614b79c97a8fbb4b..cd0a805953b394759bedd0b153b2613944f35906 100644 |
--- a/runtime/observatory/lib/src/models/objects/sample_profile.dart |
+++ b/runtime/observatory/lib/src/models/objects/sample_profile.dart |
@@ -14,6 +14,8 @@ abstract class SampleProfile { |
int get stackDepth; |
double get sampleRate; |
double get timeSpan; |
+ Iterable<ProfileCode> get codes; |
+ Iterable<ProfileFunction> get functions; |
FunctionCallTree loadFunctionTree(ProfileTreeDirection direction); |
CodeCallTree loadCodeTree(ProfileTreeDirection direction); |
@@ -26,10 +28,14 @@ abstract class Profile { |
abstract class ProfileCode extends Profile { |
CodeRef get code; |
+ Map<ProfileCode, int> get callers; |
+ Map<ProfileCode, int> get callees; |
} |
abstract class ProfileFunction extends Profile { |
FunctionRef get function; |
+ Map<ProfileFunction, int> get callers; |
+ Map<ProfileFunction, int> get callees; |
} |
typedef bool CallTreeNodeFilter(CallTreeNode); |