| 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 29 matching lines...) Expand all Loading... |
| 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 var objectEvents = tr.b.asArray(selection).sort( | 49 var objectEvents = tr.b.asArray(selection).sort( |
| 50 tr.b.Range.compareByMinTimes); | 50 tr.b.math.Range.compareByMinTimes); |
| 51 | 51 |
| 52 var timeSpanConfig = { | 52 var 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 var table = this.$.content; | 56 var table = this.$.content; |
| 57 table.tableColumns = [ | 57 table.tableColumns = [ |
| 58 { | 58 { |
| 59 title: 'First', | 59 title: 'First', |
| 60 value: function(event) { | 60 value: function(event) { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 title: 'Object Instances', | 102 title: 'Object Instances', |
| 103 }); | 103 }); |
| 104 tr.ui.analysis.AnalysisSubView.register( | 104 tr.ui.analysis.AnalysisSubView.register( |
| 105 'tr-ui-a-multi-object-sub-view', | 105 'tr-ui-a-multi-object-sub-view', |
| 106 tr.model.ObjectSnapshot, | 106 tr.model.ObjectSnapshot, |
| 107 { | 107 { |
| 108 multi: true, | 108 multi: true, |
| 109 title: 'Object Snapshots', | 109 title: 'Object Snapshots', |
| 110 }); | 110 }); |
| 111 </script> | 111 </script> |
| OLD | NEW |