| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 var title = WebInspector.UIString("Range: %s \u2013 %s", Number.millisTo
String(startOffset), Number.millisToString(endOffset)); | 1105 var title = WebInspector.UIString("Range: %s \u2013 %s", Number.millisTo
String(startOffset), Number.millisToString(endOffset)); |
| 1106 | 1106 |
| 1107 for (var i = 0; i < this._overviewControls.length; ++i) { | 1107 for (var i = 0; i < this._overviewControls.length; ++i) { |
| 1108 if (this._overviewControls[i] instanceof WebInspector.TimelinePowerO
verview) { | 1108 if (this._overviewControls[i] instanceof WebInspector.TimelinePowerO
verview) { |
| 1109 var energy = this._overviewControls[i].calculateEnergy(startTime
, endTime); | 1109 var energy = this._overviewControls[i].calculateEnergy(startTime
, endTime); |
| 1110 title += WebInspector.UIString(" Energy: %.2f Joules", energy); | 1110 title += WebInspector.UIString(" Energy: %.2f Joules", energy); |
| 1111 title += WebInspector.UIString(" Accuracy: %s", WebInspector.po
werProfiler.getAccuracyLevel()); | 1111 title += WebInspector.UIString(" Accuracy: %s", WebInspector.po
werProfiler.getAccuracyLevel()); |
| 1112 break; | 1112 break; |
| 1113 } | 1113 } |
| 1114 } | 1114 } |
| 1115 pieChartContainer.appendChild(document.createTextNode(title)); | 1115 pieChartContainer.createChild("div").textContent = title; |
| 1116 pieChartContainer.appendChild(WebInspector.TimelineUIUtils.generatePieCh
art(aggregatedStats)); | 1116 pieChartContainer.appendChild(WebInspector.TimelineUIUtils.generatePieCh
art(aggregatedStats)); |
| 1117 this.showInDetails(WebInspector.UIString("Selected Range"), pieChartCont
ainer); | 1117 this.showInDetails(WebInspector.UIString("Selected Range"), pieChartCont
ainer); |
| 1118 }, | 1118 }, |
| 1119 | 1119 |
| 1120 /** | 1120 /** |
| 1121 * @param {?WebInspector.TimelineSelection} selection | 1121 * @param {?WebInspector.TimelineSelection} selection |
| 1122 */ | 1122 */ |
| 1123 select: function(selection) | 1123 select: function(selection) |
| 1124 { | 1124 { |
| 1125 this._detailsLinkifier.reset(); | 1125 this._detailsLinkifier.reset(); |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1445 * @param {!WebInspector.TimelineModel.Record} record | 1445 * @param {!WebInspector.TimelineModel.Record} record |
| 1446 * @return {boolean} | 1446 * @return {boolean} |
| 1447 */ | 1447 */ |
| 1448 accept: function(record) | 1448 accept: function(record) |
| 1449 { | 1449 { |
| 1450 return !this._regex || this._uiUtils.testContentMatching(record, this._r
egex); | 1450 return !this._regex || this._uiUtils.testContentMatching(record, this._r
egex); |
| 1451 }, | 1451 }, |
| 1452 | 1452 |
| 1453 __proto__: WebInspector.TimelineModel.Filter.prototype | 1453 __proto__: WebInspector.TimelineModel.Filter.prototype |
| 1454 } | 1454 } |
| OLD | NEW |