Add print-rusage-self to fish

This adds an option --print-rusage-self to the fish executable. When set,
this option prints some getrusage stats to the console in a human-readable
way. This will be used by upcoming benchmarking support.
This commit is contained in:
ridiculousfish
2019-04-10 13:58:29 -07:00
parent 25dd22242d
commit b6555a0dc4
4 changed files with 49 additions and 0 deletions

View File

@@ -30,6 +30,8 @@ The following options are available:
- ``-p`` or ``--profile=PROFILE_FILE`` when fish exits, output timing information on all executed commands to the specified file
- ``--print-rusage-self`` when fish exits, output stats from getrusage
- ``-v`` or ``--version`` display version and exit
- ``-D`` or ``--debug-stack-frames=DEBUG_LEVEL`` specify how many stack frames to display when debug messages are written. The default is zero. A value of 3 or 4 is usually sufficient to gain insight into how a given debug call was reached but you can specify a value up to 128.