I'm adding a feature to the Go compiler to make debugging it easier. That is, debugging of the Go compiler itself, not of end-user code. (I believe further details are irrelevant, but for concreteness this is CL 328909.)
This feature captures a lot of stack traces,
but the expected number of unique frames across all traces is modest.
For performance, I expected I would want to use runtime.Callers
,
and then manually process and memoize the uintptr
values.
I haven't had a need for runtime.Callers