| OLD | NEW |
| 1 /** | 1 /** |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 function pushEntryInfoRow(title, value) | 222 function pushEntryInfoRow(title, value) |
| 223 { | 223 { |
| 224 entryInfo.push({ title: title, value: value }); | 224 entryInfo.push({ title: title, value: value }); |
| 225 } | 225 } |
| 226 var name = WebInspector.beautifyFunctionName(node.functionName); | 226 var name = WebInspector.beautifyFunctionName(node.functionName); |
| 227 pushEntryInfoRow(WebInspector.UIString("Name"), name); | 227 pushEntryInfoRow(WebInspector.UIString("Name"), name); |
| 228 var selfTime = this._millisecondsToString(this._entrySelfTimes[entryInde
x]); | 228 var selfTime = this._millisecondsToString(this._entrySelfTimes[entryInde
x]); |
| 229 var totalTime = this._millisecondsToString(timelineData.entryTotalTimes[
entryIndex]); | 229 var totalTime = this._millisecondsToString(timelineData.entryTotalTimes[
entryIndex]); |
| 230 pushEntryInfoRow(WebInspector.UIString("Self time"), selfTime); | 230 pushEntryInfoRow(WebInspector.UIString("Self time"), selfTime); |
| 231 pushEntryInfoRow(WebInspector.UIString("Total time"), totalTime); | 231 pushEntryInfoRow(WebInspector.UIString("Total time"), totalTime); |
| 232 var callFrame = /** @type {!ConsoleAgent.CallFrame} */ (node); | 232 var callFrame = /** @type {!RuntimeAgent.CallFrame} */ (node); |
| 233 var text = (new WebInspector.Linkifier()).linkifyConsoleCallFrame(this._
target, callFrame).textContent; | 233 var text = (new WebInspector.Linkifier()).linkifyConsoleCallFrame(this._
target, callFrame).textContent; |
| 234 pushEntryInfoRow(WebInspector.UIString("URL"), text); | 234 pushEntryInfoRow(WebInspector.UIString("URL"), text); |
| 235 pushEntryInfoRow(WebInspector.UIString("Aggregated self time"), Number.s
econdsToString(node.selfTime / 1000, true)); | 235 pushEntryInfoRow(WebInspector.UIString("Aggregated self time"), Number.s
econdsToString(node.selfTime / 1000, true)); |
| 236 pushEntryInfoRow(WebInspector.UIString("Aggregated total time"), Number.
secondsToString(node.totalTime / 1000, true)); | 236 pushEntryInfoRow(WebInspector.UIString("Aggregated total time"), Number.
secondsToString(node.totalTime / 1000, true)); |
| 237 if (node.deoptReason && node.deoptReason !== "no reason") | 237 if (node.deoptReason && node.deoptReason !== "no reason") |
| 238 pushEntryInfoRow(WebInspector.UIString("Not optimized"), node.deoptR
eason); | 238 pushEntryInfoRow(WebInspector.UIString("Not optimized"), node.deoptR
eason); |
| 239 | 239 |
| 240 return entryInfo; | 240 return entryInfo; |
| 241 }, | 241 }, |
| 242 | 242 |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 { | 752 { |
| 753 var ratio = window.devicePixelRatio; | 753 var ratio = window.devicePixelRatio; |
| 754 this._overviewCanvas.width = width * ratio; | 754 this._overviewCanvas.width = width * ratio; |
| 755 this._overviewCanvas.height = height * ratio; | 755 this._overviewCanvas.height = height * ratio; |
| 756 this._overviewCanvas.style.width = width + "px"; | 756 this._overviewCanvas.style.width = width + "px"; |
| 757 this._overviewCanvas.style.height = height + "px"; | 757 this._overviewCanvas.style.height = height + "px"; |
| 758 }, | 758 }, |
| 759 | 759 |
| 760 __proto__: WebInspector.VBox.prototype | 760 __proto__: WebInspector.VBox.prototype |
| 761 } | 761 } |
| OLD | NEW |