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

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

Issue 2204563003: Converted Observatory cpu-profile element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged with master 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file
4
5 part of models;
6
7 enum ProfileTreeDirection {
8 inclusive,
9 exclusive
10 }
11
12 abstract class SampleProfile {
13 int get sampleCount;
14 int get stackDepth;
15 double get sampleRate;
16 double get timeSpan;
17
18 FunctionCallTree loadFunctionTree(ProfileTreeDirection direction);
19 CodeCallTree loadCodeTree(ProfileTreeDirection direction);
20 }
21
22 abstract class Profile {
23 double get normalizedExclusiveTicks;
24 double get normalizedInclusiveTicks;
25 }
26
27 abstract class ProfileCode extends Profile {
28 CodeRef get code;
29 }
30
31 abstract class ProfileFunction extends Profile {
32 FunctionRef get function;
33 }
34
35 typedef bool CallTreeNodeFilter(CallTreeNode);
36
37 abstract class CallTree {
38 CallTree filtered(CallTreeNodeFilter filter);
39 }
40
41 abstract class CodeCallTree extends CallTree {
42 CodeCallTreeNode get root;
43 CodeCallTree filtered(CallTreeNodeFilter filter);
44 }
45
46 abstract class FunctionCallTree extends CallTree {
47 FunctionCallTreeNode get root;
48 FunctionCallTree filtered(CallTreeNodeFilter filter);
49 }
50
51 abstract class CallTreeNode {
52 double get percentage;
53 Iterable<CallTreeNode> get children;
54 }
55
56 abstract class CodeCallTreeNode extends CallTreeNode {
57 ProfileCode get profileCode;
58 Iterable<CodeCallTreeNode> get children;
59 }
60
61 abstract class FunctionCallTreeNode extends CallTreeNode {
62 ProfileFunction get profileFunction;
63 Iterable<FunctionCallTreeNode> get children;
64 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698