OLD | NEW |
(Empty) | |
| 1 <head> |
| 2 <link rel="import" href="class_ref.html"> |
| 3 <link rel="import" href="observatory_element.html"> |
| 4 </head> |
| 5 <polymer-element name="heap-profile" extends="observatory-element"> |
| 6 <template> |
| 7 <div> |
| 8 <button type="button" on-click="{{refreshData}}">Refresh</button> |
| 9 </div> |
| 10 <div> |
| 11 <span>New Space </span> |
| 12 <span>{{ status(true) }}</span> |
| 13 </div> |
| 14 <div> |
| 15 <span>Old Space </span> |
| 16 <span>{{ status(false) }}</span> |
| 17 </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> |
| 47 <script type="application/dart" src="heap_profile.dart"></script> |
| 48 </polymer-element> |
OLD | NEW |