VSCode profview not showing

I used @profview on some code and nothing is shown in the tab. However, I can save the contents to a HTML. When opening it and looking at the developer consoler I see this exception: Uncaught RangeError: Maximum call stack size exceeded.

It works with ProfileView.@profview, however, it is not nearly as nice.

I cannot share the code but HTML.

The source seems to be a recursive function. Is there something to tell the Profiler to not track a function?

Can you post the whole stacktrace of that error please? And/or ideally write up a MWE for this