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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 { | 755 { |
756 var ratio = window.devicePixelRatio; | 756 var ratio = window.devicePixelRatio; |
757 this._overviewCanvas.width = width * ratio; | 757 this._overviewCanvas.width = width * ratio; |
758 this._overviewCanvas.height = height * ratio; | 758 this._overviewCanvas.height = height * ratio; |
759 this._overviewCanvas.style.width = width + "px"; | 759 this._overviewCanvas.style.width = width + "px"; |
760 this._overviewCanvas.style.height = height + "px"; | 760 this._overviewCanvas.style.height = height + "px"; |
761 }, | 761 }, |
762 | 762 |
763 __proto__: WebInspector.VBox.prototype | 763 __proto__: WebInspector.VBox.prototype |
764 } | 764 } |
OLD | NEW |