OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2013 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2013 The Chromium Authors. All rights reserved. |
4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
5 found in the LICENSE file. | 5 found in the LICENSE file. |
6 --> | 6 --> |
7 | 7 |
8 <link rel="import" href="/tracing/base/unit.html"> | 8 <link rel="import" href="/tracing/base/unit.html"> |
9 <link rel="import" href="/tracing/model/event_set.html"> | 9 <link rel="import" href="/tracing/model/event_set.html"> |
10 <link rel="import" href="/tracing/ui/analysis/analysis_link.html"> | 10 <link rel="import" href="/tracing/ui/analysis/analysis_link.html"> |
(...skipping 28 matching lines...) Expand all Loading... |
39 this.$.content.showHeader = false; | 39 this.$.content.showHeader = false; |
40 }, | 40 }, |
41 | 41 |
42 get selection() { | 42 get selection() { |
43 return this.currentSelection_; | 43 return this.currentSelection_; |
44 }, | 44 }, |
45 | 45 |
46 set selection(selection) { | 46 set selection(selection) { |
47 this.currentSelection_ = selection; | 47 this.currentSelection_ = selection; |
48 | 48 |
49 const objectEvents = tr.b.asArray(selection).sort( | 49 const objectEvents = Array.from(selection).sort( |
50 tr.b.math.Range.compareByMinTimes); | 50 tr.b.math.Range.compareByMinTimes); |
51 | 51 |
52 const timeSpanConfig = { | 52 const timeSpanConfig = { |
53 unit: tr.b.Unit.byName.timeStampInMs, | 53 unit: tr.b.Unit.byName.timeStampInMs, |
54 ownerDocument: this.ownerDocument | 54 ownerDocument: this.ownerDocument |
55 }; | 55 }; |
56 const table = this.$.content; | 56 const table = this.$.content; |
57 table.tableColumns = [ | 57 table.tableColumns = [ |
58 { | 58 { |
59 title: 'First', | 59 title: 'First', |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 title: 'Object Instances', | 103 title: 'Object Instances', |
104 }); | 104 }); |
105 tr.ui.analysis.AnalysisSubView.register( | 105 tr.ui.analysis.AnalysisSubView.register( |
106 'tr-ui-a-multi-object-sub-view', | 106 'tr-ui-a-multi-object-sub-view', |
107 tr.model.ObjectSnapshot, | 107 tr.model.ObjectSnapshot, |
108 { | 108 { |
109 multi: true, | 109 multi: true, |
110 title: 'Object Snapshots', | 110 title: 'Object Snapshots', |
111 }); | 111 }); |
112 </script> | 112 </script> |
OLD | NEW |