commands.sh

gnomon

all

Utility to annotate console logging statements with timestamps and find slow processes.

More info →

Options (3)

-t, --typeboolean

Show number of seconds since the start of the process

Example: {{npm test}} | gnomon {{[-t|--type]}} elapsed-total
-h, --highboolean

Use a high threshold of 0.5 seconds, exceeding which the timestamp will be colored bright red

Example: {{npm test}} | gnomon {{[-h|--high]}} 0.5
-m, --mediumboolean

Use a medium threshold of 0.2 seconds, exceeding which the timestamp will be colored bright yellow

Example: {{npm test}} | gnomon {{[-m|--medium]}} 0.2

Examples (5)

Use UNIX (or DOS) pipes to pipe `stdout` of any command through gnomon

Show number of seconds since the start of the process

npm test | gnomon [-t|--type] elapsed-total

Show an absolute timestamp in UTC

npm test | gnomon [-t|--type] absolute

Use a high threshold of 0.5 seconds, exceeding which the timestamp will be colored bright red

npm test | gnomon [-h|--high] 0.5

Use a medium threshold of 0.2 seconds, exceeding which the timestamp will be colored bright yellow

npm test | gnomon [-m|--medium] 0.2
made by @shridhargupta | data from tldr-pages