Index: tracing/tracing/ui/extras/v8/single_v8_gc_stats_thread_slice_sub_view.html |
diff --git a/tracing/tracing/ui/extras/v8/single_v8_gc_stats_thread_slice_sub_view.html b/tracing/tracing/ui/extras/v8/single_v8_gc_stats_thread_slice_sub_view.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6926ffa2e72426245207a1927ee588bf95d4a170 |
--- /dev/null |
+++ b/tracing/tracing/ui/extras/v8/single_v8_gc_stats_thread_slice_sub_view.html |
@@ -0,0 +1,43 @@ |
+<!DOCTYPE html> |
+<!-- |
+Copyright (c) 2016 The Chromium Authors. All rights reserved. |
+Use of this source code is governed by a BSD-style license that can be |
+found in the LICENSE file. |
+--> |
+ |
+<link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html"> |
+<link rel="import" href="/tracing/ui/extras/v8/gc_objects_stats_table.html"> |
+ |
+<dom-module id='tr-ui-e-single-v8-gc-stats-thread-slice-sub-view'> |
+ <template> |
+ <tr-ui-a-single-event-sub-view id="content"></tr-ui-a-single-event-sub-view> |
+ <tr-ui-e-v8-gc-objects-stats-table id="gcObjectsStats"></tr-ui-e-v8-gc-objects-stats-table> |
+ </template> |
+</dom-module> |
+ |
+<script> |
+'use strict'; |
+Polymer({ |
+ is: 'tr-ui-e-single-v8-gc-stats-thread-slice-sub-view', |
+ behaviors: [tr.ui.analysis.AnalysisSubView], |
+ |
+ get selection() { |
+ return this.$.content.selection; |
+ }, |
+ |
+ set selection(selection) { |
+ this.$.content.selection = selection; |
+ this.$.gcObjectsStats.selection = selection; |
+ } |
+}); |
+ |
+tr.ui.analysis.AnalysisSubView.register( |
+ 'tr-ui-e-single-v8-gc-stats-thread-slice-sub-view', |
+ tr.e.v8.V8GCStatsThreadSlice, |
+ { |
+ multi: false, |
+ title: 'V8 GC stats slice' |
+ } |
+); |
+ |
+</script> |