gnomon
Version:
Utility to annotate console logging statements with timestamps and find slow processes
33 lines (22 loc) • 1.55 kB
Markdown
A command line utility, a bit like
[](https://joeyh.name/code/moreutils/), to prepend timestamp
information to the standard output of another command. Useful for long-running
processes where you'd like a historical record of what's taking so long.

Piping anything to `gnomon` will prepend a timestamp to each line, indicating
how long that line was the last line in the buffer--that is, how long it took
the next line to appear. By default, `gnomon` will display the seconds elapsed
between each line, but that is configurable.
You can display total time elapsed since the process began:

You can display an absolute timestamp:

You can also use the `--high` and/or `--medium` options to specify a length
threshold in seconds, over which `gnomon` will highlight the timestamp in red
or yellow. And you can do a few other things, too.

If the realtime timestamp updating is distracting or incompatible with your
terminal, it can be disabled:
