diff options
Diffstat (limited to 'Source/WebCore/inspector/front-end/ProfileView.js')
-rw-r--r-- | Source/WebCore/inspector/front-end/ProfileView.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/WebCore/inspector/front-end/ProfileView.js b/Source/WebCore/inspector/front-end/ProfileView.js index 335bf03..a8c5ff4 100644 --- a/Source/WebCore/inspector/front-end/ProfileView.js +++ b/Source/WebCore/inspector/front-end/ProfileView.js @@ -81,8 +81,10 @@ WebInspector.CPUProfileView = function(profile) this.profile = profile; var self = this; - function profileCallback(profile) + function profileCallback(error, profile) { + if (error) + return; self.profile.head = profile.head; self._assignParentsInProfile(); @@ -593,9 +595,9 @@ WebInspector.CPUProfileType.prototype = { this._recording = !this._recording; if (this._recording) - InspectorAgent.startProfiling(); + ProfilerAgent.start(); else - InspectorAgent.stopProfiling(); + ProfilerAgent.stop(); }, get welcomeMessage() |