mirror of
https://github.com/nicksherron/bashhub-server.git
synced 2025-09-12 15:24:13 +08:00
This adds trace, cpu and memory profiling to the root command. To use, set any of the environment variables BH_SERVER_DEBUG_TRACE, BH_SERVER_DEBUG_CPU, BH_SERVER_DEBUG_MEM to a file name and the coinciding profile will run until you interrupt or terminate the process. Use the go tool pprof to analyse the output file you set in the environment variable. |
||
---|---|---|
.. | ||
root.go | ||
transfer.go | ||
transfer_test.go | ||
version.go |