blob: d34a7087e85284727108426482d512c4d3315a2a [file] [log] [blame]
<link rel="import" href="../../../../packages/polymer/polymer.html">
<link rel="import" href="action_link.html">
<polymer-element name="isolate-summary">
<template>
<link rel="stylesheet" href="css/shared.css">
<div class="flex-row">
<div>
<isolate-ref ref="{{ isolate }}"></isolate-ref>
</div>
<div style="flex:1"></div>
<div>
<isolate-run-state isolate="{{ isolate }}"></isolate-run-state>
<isolate-location isolate="{{ isolate }}"></isolate-location>
[<a on-click="{{ goto }}" _href="{{ gotoLink('/debugger', isolate) }}">debug</a>]
</div>
</div>
<br>
<isolate-shared-summary isolate="{{ isolate }}"></isolate-shared-summary>
</template>
</polymer-element>
<polymer-element name="isolate-run-state">
<template>
<template if="{{ isolate.paused }}">
<strong title="{{ isolate.pauseEvent.timestamp.toString() }}">paused</strong>
</template>
<template if="{{ isolate.running }}">
<strong>running</strong>
</template>
<template if="{{ isolate.idle }}">
<strong>idle</strong>
</template>
<template if="{{ isolate.loading }}">
<strong>loading...</strong>
</template>
</template>
</polymer-element>
<polymer-element name="isolate-location">
<template>
<template if="{{ isolate.pauseEvent != null }}">
<template if="{{ isolate.pauseEvent.kind == 'PauseStart' }}">
at isolate start
</template>
<template if="{{ isolate.pauseEvent.kind == 'PauseExit' }}">
at isolate exit
</template>
<template if="{{ isolate.pauseEvent.kind == 'None' }}">
not yet runnable
</template>
<template if="{{ isolate.pauseEvent.kind == 'PauseInterrupted' ||
isolate.pauseEvent.kind == 'PauseBreakpoint' ||
isolate.pauseEvent.kind == 'PauseException' }}">
<template if="{{ isolate.pauseEvent.breakpoint != null }}">
by breakpoint
</template>
<template if="{{ isolate.pauseEvent.kind == 'PauseException' }}">
by exception
</template>
<template if="{{ isolate.topFrame != null }}">
at
<function-ref ref="{{ isolate.topFrame.function }}">
</function-ref>
(<source-link location="{{ isolate.topFrame.location }}">
</source-link>)
</template>
</template>
</template>
<template if="{{ isolate.running }}">
at
<function-ref ref="{{ isolate.topFrame.function }}">
</function-ref>
(<source-link location="{{ isolate.topFrame.location }}"></source-link>)
</template>
</template>
</polymer-element>
<script type="application/dart" src="isolate_summary.dart"></script>