-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Add ENABLE_PPROF to app.ini and start pprof if true on localhost:6060 #801
Conversation
why not put it on the admin panel |
If one enables pprof in the admin panel, would they just set this variable that I used to |
Should there be a PPROF_LISTEN_PORT too ?
|
I don't think so. Port |
LGTM |
LGTM |
let L-G-T-M work |
For #753 I want a simple way for people to enable pprof so they can debug with our help, or on their own, growing memory consumption or CPU usage.
For that I added
ENABLE_PPROF
to theapp.ini
.If set to true gitea will start pprof on localhost:6060 with the
gitea web
command.https://blog.golang.org/profiling-go-programs
https://golang.org/pkg/net/http/pprof/