blob: f8e4328bf6079678e62ea45d00bdfc41b5009e03 [file] [log] [blame]
<head>
<link rel="import" href="code_ref.html">
<link rel="import" href="observatory_element.html">
</head>
<polymer-element name="isolate-profile" extends="observatory-element">
<template>
<p> P R O F I L E </p>
<div>
<button type="button" on-click="{{refreshData}}">Refresh profile data</button>
<span>Top</span>
<select selectedIndex="{{methodCountSelected}}" value="{{methodCounts[methodCountSelected]}}">
<option template repeat="{{count in methodCounts}}">{{count}}</option>
</select>
<span>methods</span>
</div>
<blockquote><strong>Top Exclusive</strong></blockquote>
<table class="table table-hover">
<thead>
<tr>
<th>Ticks</th>
<th>Percent</th>
<th>Method</th>
</tr>
</thead>
<tbody>
<tr template repeat="{{ code in topExclusiveCodes }}">
<td>{{ codeTicks(code, false) }}</td>
<td>{{ codePercent(code, false) }}</td>
<td>
<span>{{ codeName(code) }}</span>
<code-ref app="{{ app }}" ref="{{ code.codeRef }}"></code-ref>
</td>
</tr>
</table>
</template>
<script type="application/dart" src="isolate_profile.dart"></script>
</polymer-element>