LinuxCommandLibrary

gnomon

prepend timestamps to command output

TLDR

Prepend timestamps

$ [command] | gnomon
copy
Show elapsed time
$ [command] | gnomon -t elapsed
copy
Show absolute time
$ [command] | gnomon -t absolute
copy
Custom format
$ [command] | gnomon -f "[%H:%M:%S]"
copy

SYNOPSIS

gnomon [options]

DESCRIPTION

gnomon prepends timestamp information to command output. It shows how long each line took to appear, useful for identifying slow operations in build processes or logs.
The tool color-codes output based on time thresholds, highlighting slow lines in red or yellow. It helps diagnose performance issues in command pipelines.

PARAMETERS

-t TYPE, --type TYPE

Time type (elapsed, absolute).
-f FORMAT, --format FORMAT
Custom time format.
-h, --high SECONDS
Threshold for high time.
-m, --medium SECONDS
Threshold for medium time.
--help
Display help information.

CAVEATS

Node.js tool. Adds some latency. Best for diagnosing slow processes.

HISTORY

gnomon was created to help developers identify slow steps in build processes and command output.

SEE ALSO

time(1), ts(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community