sample <pid> 5 -file gave a symbolicated call graph with source lines from a debug build, enough to find the hot function in a few seconds without Instruments.
- What worked
- No setup, works on an unsigned debug binary, symbols and line numbers included.
- What got in the way
- The text call graph is very deep and hard to aggregate; summing per-function counts needed a custom awk pass.