joerick / pyinstrument

🚴 Call stack profiler for Python. Shows you why your code is slow!
https://pyinstrument.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
6.69k stars 235 forks source link

Larger HTML files not loading in any browser #308

Open jonathanking-absci opened 5 months ago

jonathanking-absci commented 5 months ago

Hi,

Thanks for providing and supporting this great tool. I really enjoy the HTML feature. However, it seems like if the file gets too large or complex, it just won't load in any HTML viewer (vscode, Chrome, Safari) I have locally. For instance, turning on --show-all will prevent me from loading the resulting HTML file. Any ideas on how to circumvent this issue? Is it just an issue with my browsers, or is the a limitation or existing issue with the renderer for large reports? I have plenty of RAM available, and the pages won't load even after remaining open for some time.

Thanks for the help!

joerick commented 3 months ago

Any chance you can share the file that wouldn't load? It might be too large, or maybe the stack trace is too deep.

jonathanking-absci commented 3 months ago

Sorry, in this instance I'm not able to. I was using beartyping, and I think that may have affected the depth of the stack trace greatly. Thanks for pointing that out.