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

Unified Diff: runtime/observatory/tests/observatory_ui/mocks/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
« no previous file with comments | « runtime/observatory/tests/observatory_ui/cpu_profile_table/element_test.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/observatory_ui/mocks/objects/sample_profile.dart
diff --git a/runtime/observatory/tests/observatory_ui/mocks/objects/sample_profile.dart b/runtime/observatory/tests/observatory_ui/mocks/objects/sample_profile.dart
index 4e8441cb077e164e8703cc0ab4925713fd9a37b4..843fd03e28f63b8ad0c019b0352d17539267c744 100644
--- a/runtime/observatory/tests/observatory_ui/mocks/objects/sample_profile.dart
+++ b/runtime/observatory/tests/observatory_ui/mocks/objects/sample_profile.dart
@@ -13,11 +13,12 @@ class SampleProfileMock implements M.SampleProfile {
final SampleProfileMockLoadFunctionTreeCallback _loadFunctionTree;
final SampleProfileMockLoadCodeTreeCallback _loadCodeTree;
-
final int sampleCount;
final int stackDepth;
final double sampleRate;
final double timeSpan;
+ final Iterable<M.ProfileCode> codes;
+ final Iterable<M.ProfileFunction> functions;
M.FunctionCallTree loadFunctionTree(M.ProfileTreeDirection direction) {
if (_loadFunctionTree != null) {
@@ -34,6 +35,7 @@ class SampleProfileMock implements M.SampleProfile {
SampleProfileMock({this.sampleCount: 0, this.stackDepth: 0,
this.sampleRate: 1.0, this.timeSpan: 1.0,
+ this.codes: const [], this.functions: const [],
SampleProfileMockLoadFunctionTreeCallback loadFunctionTree,
SampleProfileMockLoadCodeTreeCallback loadCodeTree})
: _loadFunctionTree = loadFunctionTree,
« no previous file with comments | « runtime/observatory/tests/observatory_ui/cpu_profile_table/element_test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698