Builds that stubbornly refuse to speed up, even with all the CPU you can throw at them, are a familiar pain. The author here uses Rewind—a deterministic VM designed for reproducible debugging—to find out why a libuv build-and-test run takes 47 seconds on 64 cores. The new rewind time command is at the centre of this, exposing the actual critical path and letting you drill down to the source line behind every slow phase.
The big surprise: two-thirds of the time isn't spent computing at all. It's spent asleep, in syscalls like epoll_pwait and clock_nanosleep. A normal CPU profiler would miss this entirely. That's where Brendan Gregg's off-CPU analysis comes in, and the new Rewind command builds on it—mapping out not just where the CPU cycles went, but where threads were blocked, who woke them, and what would actually make the run finish sooner.
Where the time really goes
The output of the new command tells the story at a glance:
$ rewind time 7a29e716
libuv-1.51.0
78.0 s elapsed on the VM's one CPU
47.4 s critical path: the least it can take on any number of CPUs
67% asleep (epoll_pwait 23.1 s, clock_nanosleep 8.53 s, futex 100 ms), 33% computing
Here, the critical path is 47.4 seconds—no amount of parallelism can make the build faster than this. The breakdown by phase and by process shows most of that time is in make check and the lt-run-tests runner, which executes 287 tests mostly in sequence. Most of each test's time is spent sleeping on timers, not crunching data.
The tool also visualises the path as a tree of processes (using Gregg's colony graph idea) and quantifies how much faster the run would be if each segment took no time—a method called drag analysis.




