profiler icon indicating copy to clipboard operation
profiler copied to clipboard

Show JIT optimizations in the sidebar

Open gregtatum opened this issue 7 years ago • 0 comments

If the flag trackopts is turned on in the profiler, we get optimization information. This was all done as part of the JIT coach work, and recently re-enabled under the profiler feature flag. The information is stored in the FrameTable under the optimizations key. We should surface this information in the sidebar for any JavaScript stack.

The method to collect this information is to take a CallNodeTable or StackTable entry, and then look up every frame associated with it. Then aggregate the information in the frame for the summary. I'll attach an example profile once I collect one with the data in it.

Here is the documentation currently generated for this information. I believe it is outdated. https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/JIT_Optimization_Strategies

Profile with JIT optimizations: https://perfht.ml/2L2DJwS

┆Issue is synchronized with this Jira Task

gregtatum avatar May 10 '18 19:05 gregtatum