-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pprof] - Save heap profile to the file on Shutdown
#36576
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@MovieStoreGuy when you have a moment, can you take a look at it? |
heap profile on shutdown? But everything is shut down then? What are you hoping to capture? |
I think I misunderstood the shutdown sequence. |
It sounds like you almost want Continuous Profiling_ or Always On Profiling which will take snapshots of the application throughout its lifetime. |
Yeah, kind of. |
Component(s)
extension/pprof
Is your feature request related to a problem? Please describe.
Currently, there is no straightforward way to get heap profile of the collector right before it gets terminated. Same functionality exists for CPU.
It would be highly beneficial to have the ability to write the heap profile to a file at that point.
Describe the solution you'd like
runtime/pprof
has a function,WriteHeapProfile
, that saves current heap profile to the file. We can introduce a config for this, similar to what we do for CPU profile.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: