pyroscope-go
pyroscope-go copied to clipboard
godeltaprof: increase stack depth
With this change memory/mutex profiles stack depth is increased to 128.
Unfortunately, this does not affect runtime.MemProfile and runtime.MutexProfile , these APIs still return truncated stacks. It looks like there were some attempts to fix them, however they did not make it to the final patchset.
Even more unfortunately, but it looks like there is no other way but to link into blockProfileInternal memProfileInternal which is not great, especially in the light of https://github.com/golang/go/issues/67401
Looks like there will be no public API https://github.com/golang/go/issues/67941
We may consider to link into blockProfileInternal and co.