Tag: Debugging
-
gdb + py-spy vs pdb: Production Debug Latency Compared
gdb and py-spy attach to live Python processes without restarts. Compare overhead, introspection depth, and when sampling beats breakpoints.
-
tracemalloc vs memray vs Py-Spy: Profiler Overhead Cost
Compare Python memory profilers: tracemalloc, memray, and Py-Spy overhead costs. Which one is fastest? Performance benchmarks reveal the winner.
-
PyTorch Neural Network Guide: 5 Mistakes That Break Training
Fix 5 silent PyTorch mistakes that break training: gradient traps, init failures, device mismatches. Real debugging code included.
-
Python Memory Profiling: tracemalloc and memray in Prod
Debugged a 47GB memory leak in production using tracemalloc and memray. The exact profiling workflow I use to find Python leaks in under an hour.