Closed Bug 671602 Opened 13 years ago Closed 9 years ago

Expose JSOPTION_PCCOUNT counters through the Debugger object

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1176880

People

(Reporter: sfink, Assigned: jorendorff)

References

Details

Attachments

(1 file)

Bug 637393 implements JSOPTION_PCCOUNT for JSContexts. We would like that to be exposed through the jsdbg2 API.
Attached patch WIP 1Splinter Review
Here's the crudest possible way to get this information exposed. It forces pc counting on whether you've set the flag or not. A new script.getExecutionCounts() method provides the info. The test sort of illustrates how you might use it.
nbp is doing this.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Bug 1191289 adds LCOV support.
Bug 1176880 adds a Debugger.Script method.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: