mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
fs: add --dump goroutines and --dump openfiles
These are developer flags useful for tracking down resource leaks.
This commit is contained in:
@@ -953,6 +953,17 @@ only.
|
||||
Dump the filters to the output. Useful to see exactly what include
|
||||
and exclude options are filtering on.
|
||||
|
||||
#### --dump goroutines ####
|
||||
|
||||
This dumps a list of the running go-routines at the end of the command
|
||||
to standard output.
|
||||
|
||||
#### --dump openfiles ####
|
||||
|
||||
This dumps a list of the open files at the end of the command. It
|
||||
uses the `lsof` command to do that so you'll need that installed to
|
||||
use it.
|
||||
|
||||
### --memprofile=FILE ###
|
||||
|
||||
Write memory profile to file. This can be analysed with `go tool pprof`.
|
||||
|
||||
Reference in New Issue
Block a user