DevTools icon indicating copy to clipboard operation
DevTools copied to clipboard

I need to be able to parse my heap snapshots with minified code

Open dolezel opened this issue 3 years ago • 5 comments

When I get heap snapshot from production, there is not way how to get original names of the objects. Also if I take heap Allocation instrumentation on timeline / Allocation sampling, the function names in Allocation stack are minified, pointing to minified source file, but no way how to get info about the function in original code.

AB#39916153

dolezel avatar Jun 03 '22 13:06 dolezel

Thanks for reaching out. We added a feature recently to the Performance tool that allows users to unminify perf profiles recorded in production. It seems like it would be useful for you if we added a similar feature to the Memory tool now.

@joselea might have some interesting thoughts on this.

captainbrosset avatar Jun 07 '22 09:06 captainbrosset

This is possible when you have sourcemaps set up, there was a write-up in the What's new in Edge 99 and the documentation is here.

codepo8 avatar Jun 07 '22 16:06 codepo8

@codepo8 I think @dolezel is talking about Memory heap snapshots, not the Performance profiles.

I think this is a reasonable request, maybe we can re-use the infrastructure from the performance panel here.

joselea avatar Jun 07 '22 23:06 joselea

Thanks Jose. I'll add this to the team backlog so this can be prioritized.

captainbrosset avatar Jun 08 '22 07:06 captainbrosset

Thank you guys for looking into this! Based on discussion with @robpaveza https://github.com/source-map/source-map-rfc/issues/12 may be related

dolezel avatar Jun 10 '22 08:06 dolezel