Re: Improving profiler histogram resolution

2025-02-16 Thread Richard Allen
I found a new approach. By emitting histograms dynamically according to gaps in the address space, we can skip encoding long regions of mostly-zero-bins. https://review.openocd.org/c/openocd/+/8739/ (plus the others) Compared to increasing the single-histogram bucket count to fit the target addre

Improving profiler histogram resolution

2024-12-14 Thread Richard Allen
Currently, OpenOCD's gmon profiling output is limited to a 128KBucket histogram. This works well when samples lie within roughly 128K instructions of each other, but when profiles contain program counter samples with extremes beyond that, we lose instruction level granularity as the buckets contain