jlfwong / speedscope

🔬 A fast, interactive web-based viewer for performance profiles.
https://www.speedscope.app
MIT License
5.45k stars 237 forks source link

Fix maximum call stack size exceeded in some case #438

Open Camork opened 1 year ago

Camork commented 1 year ago

I found some stackoverflow bugs when import a customized format with a very deep recursion. There are another similar report , but I can only fix my cases.

jlfwong commented 1 year ago

Hi @Camork!

Can you share more about how the stack overflow was was being produced in the first place? Is this a profile you produced where the actual stack depth of the profile itself was in the hundred to thousands?

Camork commented 1 year ago

We have implement a format in our own , it records the function call, and use the CallTreeProfileBuilder to build the ProfileGroup . The format composed by the'call' and 'return' like function.

Is this a profile you produced where the actual stack depth of the profile itself was in the hundred to thousands?

Yes, we have record a application which do recursion call about thirty thousand mostly.