Bug 87017 - Web Inspector: [JSC] JavaScript profile stops recording on page load
Summary: Web Inspector: [JSC] JavaScript profile stops recording on page load
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-21 07:01 PDT by Adam Roben (:aroben)
Modified: 2014-12-12 14:37 PST (History)
12 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2012-05-21 07:01:04 PDT
To reproduce:

1. Start a JavaScript profile
2. Reload the page

The profile stops recording and disappears. This only happens in Safari, not Chrome. This makes it pretty much impossible to profile page loads.
Comment 1 Adam Roben (:aroben) 2012-05-21 07:04:08 PDT
There is some JSC-specific code in InspectorProfilerAgent to reset profiles on page load. But just removing that code isn't enough to fix the bug. It looks like JSC::ProfileGenerator is a per-JSGlobalObject object, so gets destroyed and recreated on every page load.
Comment 2 Adam Roben (:aroben) 2012-05-21 07:30:33 PDT
All the profile code in JSC stores ExecStates all over the place. Seems like we'd either need to keep those alive as long as the profile is alive, or make it so we don't have to store them at all.
Comment 3 Brian Burg 2014-12-12 14:37:14 PST
Closing as invalid, as this bug pertains to the old inspector UI and/or its tests.
Please file a new bug (https://www.webkit.org/new-inspector-bug) if the bug/feature/issue is still relevant to WebKit trunk.