Skip to content
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

export profiling as http handler #754

Open
zdyj3170101136 opened this issue Jan 17, 2024 · 1 comment
Open

export profiling as http handler #754

zdyj3170101136 opened this issue Jan 17, 2024 · 1 comment

Comments

@zdyj3170101136
Copy link

Is your feature request related to a problem? Please describe.
when rss increase, but python heap profiling overhead is too large that i could not enabled it in production.

Describe the solution you'd like
accept profiling as http handler, return heap profiling data.
GET /debug/pprof/heap

so i could reduce overhead by only trigger profiling when rss is very high or only sampling 10% percent of my machine.

@sarahec
Copy link
Contributor

sarahec commented Feb 19, 2024

Would #781 help your use case? Then you could configure a web server with whatever custom trigger you need and have it issue a redirect to show the result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants