Index: runtime/bin/vmservice/client/lib/src/observatory_elements/message_viewer.html |
=================================================================== |
--- runtime/bin/vmservice/client/lib/src/observatory_elements/message_viewer.html (revision 31848) |
+++ runtime/bin/vmservice/client/lib/src/observatory_elements/message_viewer.html (working copy) |
@@ -7,6 +7,7 @@ |
<link rel="import" href="function_view.html"> |
<link rel="import" href="instance_view.html"> |
<link rel="import" href="isolate_list.html"> |
+ <link rel="import" href="json_view.html"> |
<link rel="import" href="library_view.html"> |
<link rel="import" href="observatory_element.html"> |
<link rel="import" href="script_view.html"> |
@@ -70,6 +71,9 @@ |
<template if="{{ messageType == 'Script' }}"> |
<script-view app="{{ app }}" script="{{ message }}"></script-view> |
</template> |
+ <template if="{{ messageType == 'CPU' }}"> |
+ <json-view json="{{ message }}"></json-view> |
+ </template> |
<!-- Add new views and message types in the future here. --> |
</template> |
<script type="application/dart" src="message_viewer.dart"></script> |