sftpgo-mirror/cmd
Nicola Murino 81c8e8d898 add profiler support
profiling is now available via the HTTP base URL /debug/pprof/

examples, use this URL to start and download a 30 seconds CPU profile:

/debug/pprof/profile?seconds=30

use this URL to profile used memory:

/debug/pprof/heap?gc=1

use this URL to profile allocated memory:

/debug/pprof/allocs?gc=1

Full docs here:

https://golang.org/pkg/net/http/pprof/
2020-03-15 15:16:35 +01:00
..
initprovider.go windows: try to escape trailing double quote in user input 2020-03-04 09:27:14 +01:00
install_windows.go windows: try to escape trailing double quote in user input 2020-03-04 09:27:14 +01:00
portable.go add profiler support 2020-03-15 15:16:35 +01:00
reload_windows.go memory provider: load users from a dump file 2020-02-02 22:20:39 +01:00
root.go add profiler support 2020-03-15 15:16:35 +01:00
serve.go add profiler support 2020-03-15 15:16:35 +01:00
service_windows.go memory provider: load users from a dump file 2020-02-02 22:20:39 +01:00
start_windows.go add profiler support 2020-03-15 15:16:35 +01:00
status_windows.go add Windows Service support 2019-09-16 08:52:58 +02:00
stop_windows.go add Windows Service support 2019-09-16 08:52:58 +02:00
uninstall_windows.go add Windows Service support 2019-09-16 08:52:58 +02:00