Two Clocks, One Training Step: How TraceML Measures PyTorch Performance

A time.perf_counter() bracket and a CUDA event pair can disagree wildly about the same forward pass. Neither is wrong: they answer…