Slide 4
Slide 4 text
Leak detection
• Code reviews and overall code hygiene help but some
things are not obvious and/or hard to track.
• Measuring and understanding memory consumption is
important.
• pprof: sampling profiler, comes with standard library,
easy to use, helps a lot.
• When leaks are detected, it’s usually a process running
in some real environment, need to be careful not to
break it, limited control over execution.