Bug 135432

Summary: Web Inspector: console.profile missing profile information
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, graouts, joepeck, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

Description Joseph Pecoraro 2014-07-30 15:17:39 PDT
* SUMMARY
Switching console.profile to use the Timelines instead of the older ProfilerAgent, we have to remember to tell JSC to recompile functions as soon as WebCore has changed the "supportsProfiling" status. Previously the profiler was always on when the inspector is open. We should go back to that.

* STEPS TO REPRODUCE
1. Inspect http://www.webkit.org/misc/drosera/
2. Click "Nested functions" which does a console.profile
3. View JavaScript & Events timeline in inspector
  => should show "rot" function, but currently does not
Comment 1 Joseph Pecoraro 2014-07-30 15:29:02 PDT
Created attachment 235771 [details]
[PATCH] Proposed Fix
Comment 2 Timothy Hatcher 2014-07-30 17:12:02 PDT
Comment on attachment 235771 [details]
[PATCH] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=235771&action=review

> Source/WebCore/inspector/InspectorTimelineAgent.h:285
> +    int m_recordingProfileDepth;

ptrdiff_t! :)

Or size_t and just assert that m_recordingProfileDepth > 0 before --m_recordingProfileDepth.
Comment 3 Radar WebKit Bug Importer 2014-07-31 10:19:16 PDT
<rdar://problem/17872082>
Comment 4 WebKit Commit Bot 2014-07-31 10:35:08 PDT
Comment on attachment 235771 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 235771

Committed r171866: <http://trac.webkit.org/changeset/171866>
Comment 5 WebKit Commit Bot 2014-07-31 10:35:11 PDT
All reviewed patches have been landed.  Closing bug.