Chapter 2
Profiling with pprof
Where is the time really going?
~16 min total2 lessonsAssignment
By the end of this chapter you'll be able to
- Capture CPU + heap profiles
- Read a flame graph
Lessons
Chapter assignment
Profile + diagnose
Capture a CPU + heap profile of your benchmark. Identify the hottest function. Write 1 paragraph describing what surprises you (almost always there's a surprise).
See success criteriaLesson 1 takes ~8 min.
Start chapterSpot a typo? Have an idea?
Help us improve this chapter. One click opens a GitHub issue with this chapter's URL pre-filled — suggest a clearer wording, report a bug, or request a new lesson. The course keeps improving thanks to learners like you.
Suggest an improvement on GitHub