diff options
author | Jakob Unterwurzacher | 2017-07-30 13:26:56 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-07-30 16:07:00 +0200 |
commit | 1f39ede4b46ec3609ccbe1d54402f4a17f3d697e (patch) | |
tree | c0705ef11c3b0afc390ff31835f538963b32ff78 /tests/test_helpers/helpers.go | |
parent | 86253b75670172fda6b481848cd63ca5685f112d (diff) |
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 .
Diffstat (limited to 'tests/test_helpers/helpers.go')
0 files changed, 0 insertions, 0 deletions