Add a shell function to dump all of a function's tracked optimizations

RESOLVED FIXED in Firefox 39

Status

()

Core
JavaScript Engine: JIT
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: shu, Unassigned)

Tracking

unspecified
mozilla39
All
Linux
Points:
---

Firefox Tracking Flags

(firefox39 fixed)

Details

Attachments

(1 attachment)

(Reporter)

Description

3 years ago
Add a trackedOpts(fun) to return an object describing the tracked optimizations of fun, if any. If fun isn't scripted or hasn't been compiled by Ion, return null.
(Reporter)

Comment 1

3 years ago
Created attachment 8561839 [details] [diff] [review]
Add a shell function to dump all of a function's tracked optimizations.

Jason had mentioned wanting this. Small test case:

enableSPSProfiling();
function f(o) { for (var i = 0; i < 10000; i++) o.p++; }
var o = {p: 0};
f(o);
dis(f); // To match offsets to bytecode.
print(JSON.stringify(trackedOpts(f), undefined, 2));
Attachment #8561839 - Flags: review?(kvijayan)
Attachment #8561839 - Flags: feedback?(jorendorff)

Updated

3 years ago
Attachment #8561839 - Flags: review?(kvijayan) → review+
https://hg.mozilla.org/mozilla-central/rev/369435bc4623
Status: NEW → RESOLVED
Last Resolved: 3 years ago
status-firefox39: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
(Reporter)

Comment 4

3 years ago
Comment on attachment 8561839 [details] [diff] [review]
Add a shell function to dump all of a function's tracked optimizations.

Review of attachment 8561839 [details] [diff] [review]:
-----------------------------------------------------------------

Already landed, whether jorendorff likes it or not!
Attachment #8561839 - Flags: feedback?(jorendorff)
You need to log in before you can comment on or make changes to this bug.