grafana / pyroscope-go

This is the golang client integration for Pyroscope
Apache License 2.0
98 stars 18 forks source link

godeltaprof: increase stack depth #113

Open korniltsev opened 3 months ago

korniltsev commented 3 months ago

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 commented 3 weeks ago

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