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

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: Removed tmp files 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 abstract class SampleProfile {
8 int get sampleCount;
9 int get stackDepth;
10 double get sampleRate;
11 double get timeSpan;
12
13 FunctionCallTree loadFunctionTree(String name);
14 CodeCallTree loadCodeTree(String name);
15 }
16
17 abstract class Profile {
18 double get normalizedExclusiveTicks;
19 double get normalizedInclusiveTicks;
20 }
21
22 abstract class ProfileCode extends Profile {
23 CodeRef get code;
24 }
25
26 abstract class ProfileFunction extends Profile {
27 FunctionRef get function;
28 }
29
30 typedef bool CallTreeNodeFilter(CallTreeNode);
31
32 abstract class CallTree {
33 CallTree filtered(CallTreeNodeFilter filter);
34 }
35
36 abstract class CodeCallTree extends CallTree {
37 CodeCallTreeNode get root;
38 CodeCallTree filtered(CallTreeNodeFilter filter);
39 }
40
41 abstract class FunctionCallTree extends CallTree {
42 FunctionCallTreeNode get root;
43 FunctionCallTree filtered(CallTreeNodeFilter filter);
44 }
45
46 abstract class CallTreeNode {
47 double get percentage;
48 Iterable<CallTreeNode> get children;
49 }
50
51 abstract class CodeCallTreeNode extends CallTreeNode {
52 ProfileCode get profileCode;
53 Iterable<CodeCallTreeNode> get children;
54 }
55
56 abstract class FunctionCallTreeNode extends CallTreeNode {
57 ProfileFunction get profileFunction;
58 Iterable<FunctionCallTreeNode> get children;
59 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698