Understanding Linux perf: stat and record

What really happens in the kernel when you run perf stat or perf record.

December 4, 2025 · 8 min · Sandeep Kumar

Reading torch.profiler Correctly: Schedules, Labels, and CPU vs GPU Time

torch.profiler integrates PyTorch operator attribution, optional source stacks, and CUDA activity in one trace. Its numbers mean what you think only if you control the capture window, the labels and the host syncs.

October 9, 2026 · 63 min · Sandeep Kumar