1 Commits (8cb104f004cc5d3343bc3b5ef2187c1830e00f19)

Author SHA1 Message Date
Jakob Unterwurzacher 1f39ede4b4 main: save memory profile every 60 seconds
...and move all profiling functionality to its own file, as
the main function is already long enough.

Periodically saving the memory profile allows capturing the used
memory during normal operation, as opposed to on exit, where the
kernel has already issued FORGETs for all inodes.

This functionality has been used to create the memory profile shown
in https://github.com/rfjakob/gocryptfs/issues/132 .
6 years ago