OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 __proto__: WebInspector.ProfileView.prototype | 56 __proto__: WebInspector.ProfileView.prototype |
57 } | 57 } |
58 | 58 |
59 /** | 59 /** |
60 * @constructor | 60 * @constructor |
61 * @extends {WebInspector.ProfileType} | 61 * @extends {WebInspector.ProfileType} |
62 */ | 62 */ |
63 WebInspector.CPUProfileType = function() | 63 WebInspector.CPUProfileType = function() |
64 { | 64 { |
65 WebInspector.ProfileType.call(this, WebInspector.CPUProfileType.TypeId, WebI
nspector.UIString("Collect JavaScript CPU Profile")); | 65 WebInspector.ProfileType.call(this, WebInspector.CPUProfileType.TypeId, WebI
nspector.UIString("Record JavaScript CPU Profile")); |
66 this._recording = false; | 66 this._recording = false; |
67 | 67 |
68 this._nextAnonymousConsoleProfileNumber = 1; | 68 this._nextAnonymousConsoleProfileNumber = 1; |
69 this._anonymousConsoleProfileIdToTitle = {}; | 69 this._anonymousConsoleProfileIdToTitle = {}; |
70 | 70 |
71 WebInspector.CPUProfileType.instance = this; | 71 WebInspector.CPUProfileType.instance = this; |
72 WebInspector.targetManager.addModelListener(WebInspector.CPUProfilerModel, W
ebInspector.CPUProfilerModel.EventTypes.ConsoleProfileStarted, this._consoleProf
ileStarted, this); | 72 WebInspector.targetManager.addModelListener(WebInspector.CPUProfilerModel, W
ebInspector.CPUProfilerModel.EventTypes.ConsoleProfileStarted, this._consoleProf
ileStarted, this); |
73 WebInspector.targetManager.addModelListener(WebInspector.CPUProfilerModel, W
ebInspector.CPUProfilerModel.EventTypes.ConsoleProfileFinished, this._consolePro
fileFinished, this); | 73 WebInspector.targetManager.addModelListener(WebInspector.CPUProfilerModel, W
ebInspector.CPUProfilerModel.EventTypes.ConsoleProfileFinished, this._consolePro
fileFinished, this); |
74 } | 74 } |
75 | 75 |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 * @override | 326 * @override |
327 * @param {!WebInspector.ProfileDataGridNode} node | 327 * @param {!WebInspector.ProfileDataGridNode} node |
328 * @return {!Element} | 328 * @return {!Element} |
329 */ | 329 */ |
330 linkifyNode: function(node) | 330 linkifyNode: function(node) |
331 { | 331 { |
332 var callFrame = node.profileNode.frame; | 332 var callFrame = node.profileNode.frame; |
333 return this._profileView.linkifier().linkifyConsoleCallFrame(this._profi
leView.target(), callFrame, "profile-node-file"); | 333 return this._profileView.linkifier().linkifyConsoleCallFrame(this._profi
leView.target(), callFrame, "profile-node-file"); |
334 } | 334 } |
335 } | 335 } |
OLD | NEW |