pyroscope-go icon indicating copy to clipboard operation
pyroscope-go copied to clipboard

godeltaprof: increase stack depth

Open korniltsev opened this issue 1 year ago • 1 comments

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

korniltsev avatar Jun 04 '24 08:06 korniltsev

Looks like there will be no public API https://github.com/golang/go/issues/67941 We may consider to link into blockProfileInternal and co.

korniltsev avatar Aug 22 '24 17:08 korniltsev