Closed Bug 1131429 Opened 9 years ago Closed 9 years ago

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

Categories

(Core :: JavaScript Engine: JIT, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: shu, Unassigned)

Details

Attachments

(1 file)

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.
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)
Attachment #8561839 - Flags: review?(kvijayan) → review+
https://hg.mozilla.org/mozilla-central/rev/369435bc4623
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
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.