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/core/filter.html"> | 8 <link rel="import" href="/tracing/core/filter.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/model/model.html"> | 10 <link rel="import" href="/tracing/model/model.html"> |
(...skipping 10 matching lines...) Expand all Loading... |
21 * Visualizes a Cpu using a series of SliceTracks. | 21 * Visualizes a Cpu using a series of SliceTracks. |
22 * @constructor | 22 * @constructor |
23 */ | 23 */ |
24 var CpuTrack = | 24 var CpuTrack = |
25 tr.ui.b.define('cpu-track', tr.ui.tracks.ContainerTrack); | 25 tr.ui.b.define('cpu-track', tr.ui.tracks.ContainerTrack); |
26 CpuTrack.prototype = { | 26 CpuTrack.prototype = { |
27 __proto__: tr.ui.tracks.ContainerTrack.prototype, | 27 __proto__: tr.ui.tracks.ContainerTrack.prototype, |
28 | 28 |
29 decorate: function(viewport) { | 29 decorate: function(viewport) { |
30 tr.ui.tracks.ContainerTrack.prototype.decorate.call(this, viewport); | 30 tr.ui.tracks.ContainerTrack.prototype.decorate.call(this, viewport); |
31 this.classList.add('cpu-track'); | 31 Polymer.dom(this).classList.add('cpu-track'); |
32 this.detailedMode_ = true; | 32 this.detailedMode_ = true; |
33 }, | 33 }, |
34 | 34 |
35 get cpu() { | 35 get cpu() { |
36 return this.cpu_; | 36 return this.cpu_; |
37 }, | 37 }, |
38 | 38 |
39 set cpu(cpu) { | 39 set cpu(cpu) { |
40 this.cpu_ = cpu; | 40 this.cpu_ = cpu; |
41 this.updateContents_(); | 41 this.updateContents_(); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 Polymer.dom(this).appendChild(samplesTrack); | 130 Polymer.dom(this).appendChild(samplesTrack); |
131 }, this); | 131 }, this); |
132 } | 132 } |
133 }; | 133 }; |
134 | 134 |
135 return { | 135 return { |
136 CpuTrack: CpuTrack | 136 CpuTrack: CpuTrack |
137 }; | 137 }; |
138 }); | 138 }); |
139 </script> | 139 </script> |
OLD | NEW |