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

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

Issue 2273993002: Converted Observatory cpu-profile-table element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
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/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);
« no previous file with comments | « runtime/observatory/lib/src/models/objects/function.dart ('k') | runtime/observatory/observatory_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698