← All projects
Project record1 mention
Originally shared on Hacker News

whytime

whytime is a command-line alternative to time(1) that attributes a command's wall-clock time to causes such as network waits, fsync, timer sleep, and on-CPU time, with a percentage breakdown that always adds up to 100% and a top line showing what to make faster; it can also draw a flamegraph and uses eBPF (Linux 5.18+).

Last shared
01 / The problem

What it addresses

time(1) only reports a command's total elapsed time, not where the wall-clock time went.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. whytime

    whytime is a command-line alternative to time(1) that attributes a command's wall-clock time to causes such as network waits, fsync, timer sleep, and on-CPU time, with a percentage breakdown that always adds up to 100% and a top line showing what to make faster; it can also draw a flamegraph and uses eBPF (Linux 5.18+).

    Problem: time(1) only reports a command's total elapsed time, not where the wall-clock time went.

    Posted by @Arinerron · Original source ↗

    Story title · @Arinerron · · Source ↗

    Show HN: whytime: time(1) that tells you where the wall-clock time went

    Submitted URL · @Arinerron · · Source ↗

    https://github.com/Arinerron/whytime

    Source text · @Arinerron · · Source ↗

    time says a command took 3.8 seconds... whytime tells you where those seconds went

    Source text · @Arinerron · · Source ↗

    The lines always add up to 100%. When the command waits on a child or another thread, whytime follows whoever woke it up, so a shell waiting on curl is charged to the network wait curl was stuck on.

    Source text · @Arinerron · · Source ↗

    It can also draw a flamegraph. Uses eBPF (Linux 5.18+)