Skip to content

Instantly share code, notes, and snippets.

@lucgiffon
Created December 14, 2022 09:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucgiffon/662b1440412d2737d6598144acb8e1e1 to your computer and use it in GitHub Desktop.
Save lucgiffon/662b1440412d2737d6598144acb8e1e1 to your computer and use it in GitHub Desktop.
Pretty Format /usr/bin/time (source: Emmanuel Quemener ENS de Lyon CBP)
export TIME='TIME Command being timed: "%C"
TIME User time (seconds): %U
TIME System time (seconds): %S
TIME Elapsed (wall clock) time : %e
TIME Percent of CPU this job got: %P
TIME Average shared text size (kbytes): %X
TIME Average unshared data size (kbytes): %D
TIME Average stack size (kbytes): %p
TIME Average total size (kbytes): %K
TIME Maximum resident set size (kbytes): %M
TIME Average resident set size (kbytes): %t
TIME Major (requiring I/O) page faults: %F
TIME Minor (reclaiming a frame) page faults: %R
TIME Voluntary context switches: %w
TIME Involuntary context switches: %c
TIME Swaps: %W
TIME File system inputs: %I
TIME File system outputs: %O
TIME Socket messages sent: %s
TIME Socket messages received: %r
TIME Signals delivered: %k
TIME Page size (bytes): %Z
TIME Exit status: %x'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment