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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/observatory_elements/heap_profile.html

Issue 148153007: Add Google Charts to Observatory and use it in allocation profiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 <head> 1 <head>
2 <link rel="import" href="class_ref.html"> 2 <link rel="import" href="class_ref.html">
3 <link rel="import" href="observatory_element.html"> 3 <link rel="import" href="observatory_element.html">
4 </head> 4 </head>
5 <polymer-element name="heap-profile" extends="observatory-element"> 5 <polymer-element name="heap-profile" extends="observatory-element">
6 <template> 6 <template>
7 <div> 7 <div>
8 <button type="button" on-click="{{refreshData}}">Refresh</button> 8 <button type="button" on-click="{{refreshData}}">Refresh</button>
9 </div> 9 </div>
10 <div> 10 <div class="row">
11 <span>New Space </span> 11 <div id="newPieChart" class="col-md-4" style="height: 400px">
12 <span>{{ status(true) }}</span> 12 </div>
13 <div id="newStatus" class="col-md-2">
14 <table class="table">
15 <tbody>
16 <tr>
17 <td>Collections</td>
18 <td>{{ formattedCollections(true) }}</td>
19 </tr>
20 <tr>
21 <td>Average Collection Time</td>
22 <td>{{ formattedAverage(true) }}</td>
23 </tr>
24 <tr>
25 <td>Cumulative Collection Time</td>
26 <td>{{ formattedTotalCollectionTime(true) }}</td>
27 </tr>
28 </tbody>
29 </table>
30 </div>
31 <div id="oldPieChart" class="col-md-4" style="height: 400px">
32 </div>
33 <div id="oldStatus" class="col-md-2">
34 <table class="table">
35 <tbody>
36 <tr>
37 <td>Collections</td>
38 <td>{{ formattedCollections(true) }}</td>
39 </tr>
40 <tr>
41 <td>Average Collection Time</td>
42 <td>{{ formattedAverage(true) }}</td>
43 </tr>
44 <tr>
45 <td>Cumulative Collection Time</td>
46 <td>{{ formattedTotalCollectionTime(true) }}</td>
47 </tr>
48 </tbody>
49 </table>
50 </div>
13 </div> 51 </div>
14 <div> 52 <div class="row">
15 <span>Old Space </span> 53 <div id="table" class="col-md-12" style="height: 800px"></div>
16 <span>{{ status(false) }}</span>
17 </div> 54 </div>
18 <table class="table table-hover">
19 <thead>
20 <tr>
21 <th>Class</th>
22 <th><button on-click="{{changeSortColumn}}" data-msg="1">Current (new)</ button></th>
23 <th><button on-click="{{changeSortColumn}}" data-msg="2">Allocated since GC (new)</button></th>
24 <th><button on-click="{{changeSortColumn}}" data-msg="3">Total before la st GC (new)</button></th>
25 <th><button on-click="{{changeSortColumn}}" data-msg="4">Total after las t GC (new)</button></th>
26 <th><button on-click="{{changeSortColumn}}" data-msg="5">Current (old)</ button></th>
27 <th><button on-click="{{changeSortColumn}}" data-msg="6">Allocated since GC (old)</button></th>
28 <th><button on-click="{{changeSortColumn}}" data-msg="7">Total before la st GC (old)</button></th>
29 <th><button on-click="{{changeSortColumn}}" data-msg="8">Total after las t GC (old)</button></th>
30 </tr>
31 </thead>
32 <tbody>
33 <tr template repeat="{{ cls in sortedProfile }}">
34 <td><class-ref app="{{ app }}" ref="{{ cls['class'] }}"></class-ref></td>
35 <td>{{ current(cls, true) }}</td>
36 <td>{{ allocated(cls, true) }}</td>
37 <td>{{ beforeGC(cls, true) }}</td>
38 <td>{{ afterGC(cls, true) }}</td>
39 <td>{{ current(cls, false) }}</td>
40 <td>{{ allocated(cls, false) }}</td>
41 <td>{{ beforeGC(cls, false) }}</td>
42 <td>{{ afterGC(cls, false) }}</td>
43 </tr>
44 </tbody>
45 </table>
46 </template> 55 </template>
47 <script type="application/dart" src="heap_profile.dart"></script> 56 <script type="application/dart" src="heap_profile.dart"></script>
48 </polymer-element> 57 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698