| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview Profiler processor is used to process log file produced | 6 * @fileoverview Profiler processor is used to process log file produced |
| 7 * by V8 and produce an internal profile representation which is used | 7 * by V8 and produce an internal profile representation which is used |
| 8 * for building profile views in 'Profiles' tab. | 8 * for building profile views in 'Profiles' tab. |
| 9 */ | 9 */ |
| 10 goog.provide('devtools.profiler.Processor'); | 10 goog.provide('devtools.profiler.Processor'); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 * RegEx for stripping V8's prefixes of compiled functions. | 60 * RegEx for stripping V8's prefixes of compiled functions. |
| 61 */ | 61 */ |
| 62 devtools.profiler.WebKitViewNode.FUNC_NAME_STRIP_RE = | 62 devtools.profiler.WebKitViewNode.FUNC_NAME_STRIP_RE = |
| 63 /^(?:LazyCompile|Function|Callback): (.*)$/; | 63 /^(?:LazyCompile|Function|Callback): (.*)$/; |
| 64 | 64 |
| 65 | 65 |
| 66 /** | 66 /** |
| 67 * RegEx for extracting script source URL and line number. | 67 * RegEx for extracting script source URL and line number. |
| 68 */ | 68 */ |
| 69 devtools.profiler.WebKitViewNode.FUNC_NAME_PARSE_RE = | 69 devtools.profiler.WebKitViewNode.FUNC_NAME_PARSE_RE = |
| 70 /^([^ ]+) (.*):(\d+)( \{\d+\})?$/; | 70 /^((?:get | set )?[^ ]+) (.*):(\d+)( \{\d+\})?$/; |
| 71 | 71 |
| 72 | 72 |
| 73 /** | 73 /** |
| 74 * Inits 'functionName', 'url', and 'lineNumber' fields using 'internalFuncName' | 74 * Inits 'functionName', 'url', and 'lineNumber' fields using 'internalFuncName' |
| 75 * field. | 75 * field. |
| 76 * @private | 76 * @private |
| 77 */ | 77 */ |
| 78 devtools.profiler.WebKitViewNode.prototype.initFuncInfo_ = function() { | 78 devtools.profiler.WebKitViewNode.prototype.initFuncInfo_ = function() { |
| 79 var nodeAlias = devtools.profiler.WebKitViewNode; | 79 var nodeAlias = devtools.profiler.WebKitViewNode; |
| 80 this.functionName = this.internalFuncName; | 80 this.functionName = this.internalFuncName; |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 /** | 475 /** |
| 476 * Creates a profile for further displaying in ProfileView. | 476 * Creates a profile for further displaying in ProfileView. |
| 477 */ | 477 */ |
| 478 devtools.profiler.Processor.prototype.createProfileForView = function() { | 478 devtools.profiler.Processor.prototype.createProfileForView = function() { |
| 479 var profile = this.viewBuilder_.buildView( | 479 var profile = this.viewBuilder_.buildView( |
| 480 this.currentProfile_.getTopDownProfile()); | 480 this.currentProfile_.getTopDownProfile()); |
| 481 profile.uid = this.profileId_++; | 481 profile.uid = this.profileId_++; |
| 482 profile.title = UserInitiatedProfileName + '.' + profile.uid; | 482 profile.title = UserInitiatedProfileName + '.' + profile.uid; |
| 483 return profile; | 483 return profile; |
| 484 }; | 484 }; |
| OLD | NEW |