~/talk

Profiling with Heaptrack and Hotspot on Embedded Linux

Talkat NDC TechTown 2025 · 2025-09-22..09-25· [linux-and-operating-systems]
links:none on file
slides:none on file

Shows concrete workflows: use Hotspot + perf (perf record --call-graph dwarf -z ...) to find a string-hashing hotspot that yields a ~4× speedup and a string-allocation change that gives another ~2×; uses perf scheduler-switch tracing to reveal mutex contention and off-CPU waits that shrink after narrowing the lock scope. Uses Heaptrack to intercept every malloc, recording call stacks and exposing >40 million allocations and a memory leak that drops to a 22 KB remainder after fixes. Records raw on-device and interprets on the dev machine.

AI-written summary · about

  1. 0:00Profiling tools on Embedded Linux
  2. 8:10Hotspot and Linux Perf setup
  3. 13:51CPU profiling with flame graphs
  4. 32:26Off-CPU profiling for sleep/contention
  5. 46:36Heaptrack for memory analysis
  6. 59:18Embedded Linux setup and outlook
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.