| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.CountersGraph} | 7 * @extends {WebInspector.CountersGraph} |
| 8 * @implements {WebInspector.TimelineModeView} | 8 * @implements {WebInspector.TimelineModeView} |
| 9 * @param {!WebInspector.TimelineModeViewDelegate} delegate | 9 * @param {!WebInspector.TimelineModeViewDelegate} delegate |
| 10 * @param {!WebInspector.TimelineModel} model | 10 * @param {!WebInspector.TimelineModel} model |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 return; | 32 return; |
| 33 } | 33 } |
| 34 | 34 |
| 35 // "value" of original PowerEvent means the average power between previo
us sampling to current one. | 35 // "value" of original PowerEvent means the average power between previo
us sampling to current one. |
| 36 // Here, it is converted to average power between current sampling to ne
xt one. | 36 // Here, it is converted to average power between current sampling to ne
xt one. |
| 37 this._counter.appendSample(this._previousRecord.timestamp, record.value)
; | 37 this._counter.appendSample(this._previousRecord.timestamp, record.value)
; |
| 38 this._previousRecord = record; | 38 this._previousRecord = record; |
| 39 this.scheduleRefresh(); | 39 this.scheduleRefresh(); |
| 40 }, | 40 }, |
| 41 | 41 |
| 42 /** | |
| 43 * @param {!WebInspector.TimelineModel.Record} record | |
| 44 */ | |
| 45 addRecord: function(record) | |
| 46 { | |
| 47 }, | |
| 48 | |
| 49 __proto__: WebInspector.CountersGraph.prototype | 42 __proto__: WebInspector.CountersGraph.prototype |
| 50 } | 43 } |
| OLD | NEW |