Debugging and Profiling .NET Core Apps on Linux
summary
Shows how to diagnose CPU, allocation and blocked-time issues on Linux using perf for sampling and flame graphs, and bcc / BPF tools (stack_count, funccount, offcputime) for low-overhead aggregation and continuous monitoring. Demonstrates GC and allocation events via lttng (17,000 events, 45 Gen2 collections in the demo) and fixes JIT symbol names with COMPlus_PerfMapEnabled=1 and perf .map files. Covers core dumps analyzed in a matching container with lldb+SOS (works but needs thread-ID mapping and identical distro/libs).
AI-written summary · about
chapters (17)
- 0:00Introduction
- 1:18Talk overview
- 3:05Disclaimer and theory
- 9:05Introducing perf tool
- 11:54Debug symbols on Linux
- 14:22Flame graphs explained
- 15:44CPU profiling demo
- 22:08BPF alternative to perf
- 24:59Garbage collection tracing
- 27:15Allocation profiling
- 31:30Off-CPU time profiling
- 36:36Runtime events with LTTng
- 44:51Core dumps on Linux
- 46:39Generating core dumps
- 48:04Analyzing core dumps with LLDB
- 50:17Docker for dump analysis
- 57:24Summary and checklist
