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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 /** | 170 /** |
171 * @param {string} type | 171 * @param {string} type |
172 * @param {!SDK.DebuggerModel.Location} scriptLocation | 172 * @param {!SDK.DebuggerModel.Location} scriptLocation |
173 * @param {string} messageText | 173 * @param {string} messageText |
174 */ | 174 */ |
175 _addMessageToConsole(type, scriptLocation, messageText) { | 175 _addMessageToConsole(type, scriptLocation, messageText) { |
176 var script = scriptLocation.script(); | 176 var script = scriptLocation.script(); |
177 var target = scriptLocation.target(); | 177 var target = scriptLocation.target(); |
178 var message = new SDK.ConsoleMessage( | 178 var message = new SDK.ConsoleMessage( |
179 target, SDK.ConsoleMessage.MessageSource.ConsoleAPI, SDK.ConsoleMessage.
MessageLevel.Debug, messageText, type, | 179 target, SDK.ConsoleMessage.MessageSource.ConsoleAPI, SDK.ConsoleMessage.
MessageLevel.Verbose, messageText, type, |
180 undefined, undefined, undefined, undefined, [{ | 180 undefined, undefined, undefined, undefined, [{ |
181 functionName: '', | 181 functionName: '', |
182 scriptId: scriptLocation.scriptId, | 182 scriptId: scriptLocation.scriptId, |
183 url: script ? script.contentURL() : '', | 183 url: script ? script.contentURL() : '', |
184 lineNumber: scriptLocation.lineNumber, | 184 lineNumber: scriptLocation.lineNumber, |
185 columnNumber: scriptLocation.columnNumber || 0 | 185 columnNumber: scriptLocation.columnNumber || 0 |
186 }]); | 186 }]); |
187 | 187 |
188 target.consoleModel.addMessage(message); | 188 target.consoleModel.addMessage(message); |
189 } | 189 } |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 * @param {!SDK.CPUProfileNode} node | 458 * @param {!SDK.CPUProfileNode} node |
459 */ | 459 */ |
460 constructor(depth, duration, startTime, selfTime, node) { | 460 constructor(depth, duration, startTime, selfTime, node) { |
461 this.depth = depth; | 461 this.depth = depth; |
462 this.duration = duration; | 462 this.duration = duration; |
463 this.startTime = startTime; | 463 this.startTime = startTime; |
464 this.selfTime = selfTime; | 464 this.selfTime = selfTime; |
465 this.node = node; | 465 this.node = node; |
466 } | 466 } |
467 }; | 467 }; |
OLD | NEW |