| Index: runtime/bin/vmservice/client/lib/src/observatory_elements/heap_profile.html
|
| diff --git a/runtime/bin/vmservice/client/lib/src/observatory_elements/heap_profile.html b/runtime/bin/vmservice/client/lib/src/observatory_elements/heap_profile.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a1316d23ed51ad6655825139e5c29d381e5d752d
|
| --- /dev/null
|
| +++ b/runtime/bin/vmservice/client/lib/src/observatory_elements/heap_profile.html
|
| @@ -0,0 +1,68 @@
|
| +<head>
|
| + <link rel="import" href="class_ref.html">
|
| + <link rel="import" href="observatory_element.html">
|
| +</head>
|
| +<polymer-element name="heap-profile" extends="observatory-element">
|
| +<template>
|
| + <div>
|
| + <span>
|
| + Top
|
| + <select selectedIndex="{{classCountSelected}}" value="{{classCounts[classCountSelected]}}">
|
| + <option template repeat="{{count in classCounts}}">{{count}}</option>
|
| + </select>
|
| + Classes
|
| + </span>
|
| + </div>
|
| + <div>
|
| + </div>
|
| + <div>
|
| + <span>New Space </span>
|
| + <span>{{ status(true) }}</span>
|
| + </div>
|
| + <table class="table table-hover">
|
| + <thead>
|
| + <tr>
|
| + <th>Class</th>
|
| + <th>Current</th>
|
| + <th>Allocated since GC</th>
|
| + <th>Total before last GC</th>
|
| + <th>Total after last GC</th>
|
| + </tr>
|
| + </thead>
|
| + <tbody>
|
| + <tr template repeat="{{ cls in sortedProfileNewSpace }}">
|
| + <td><class-ref app="{{ app }}" ref="{{ cls['class'] }}"></class-ref></td>
|
| + <td>{{ current(cls, true) }}</td>
|
| + <td>{{ allocated(cls, true) }}</td>
|
| + <td>{{ beforeGC(cls, true) }}</td>
|
| + <td>{{ afterGC(cls, true) }}</td>
|
| + </tr>
|
| + </tbody>
|
| + </table>
|
| + <div>
|
| + <span>Old Space </span>
|
| + <span>{{ status(false) }}</span>
|
| + </div>
|
| + <table class="table table-hover">
|
| + <thead>
|
| + <tr>
|
| + <th>Class</th>
|
| + <th>Current</th>
|
| + <th>Allocated since GC</th>
|
| + <th>Total before last GC</th>
|
| + <th>Total after last GC</th>
|
| + </tr>
|
| + </thead>
|
| + <tbody>
|
| + <tr template repeat="{{ cls in sortedProfileOldSpace }}">
|
| + <td><class-ref app="{{ app }}" ref="{{ cls['class'] }}"></class-ref></td>
|
| + <td>{{ current(cls, false) }}</td>
|
| + <td>{{ allocated(cls, true) }}</td>
|
| + <td>{{ beforeGC(cls, false) }}</td>
|
| + <td>{{ afterGC(cls, false) }}</td>
|
| + </tr>
|
| + </tbody>
|
| + </table>
|
| +</template>
|
| +<script type="application/dart" src="heap_profile.dart"></script>
|
| +</polymer-element>
|
|
|