I wrote a tool to inspect DWARF info for pointers in structs and posted it 
here: https://github.com/aconz2/elfptrs
It will show the percentiles of things like struct size, number of 
pointers, offset of those pointers, and successive difference of offsets
Of course we'd also need to know the relative frequency of allocation for 
each of those types, but it is a start
On Monday, August 3, 2026 at 7:22:59 PM UTC-5 Andrew Consroe wrote:

> Reading an article on the design of the Green Tea collector the other day 
> got me thinking about GC design more generally. One metric that could go 
> into a GC design besides the total heap size is the total number of 
> pointers into the heap. Because Go uses a pointer bitmap, I think this 
> metric should be fairly easy (in theory) to access. I'd be interested to 
> see what the ratio between heap size and pointer count is for various 
> programs in production.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/31ad98b4-8cb6-439e-ad4f-8dbf3d3523e4n%40googlegroups.com.

Reply via email to