profiler
profiler copied to clipboard
Show JIT optimizations in the sidebar
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