"func memhungry()" is released at the end of that function.
Therefore, inside memhungry(), I would like to hook all memory allocations,
and add them to a list. At the end of the function, I would like to use
defer or other means would free those allocations.
In effect, this is manually implementing a region/arena memory area for
this particular function.
Is this possible in golang? If so, how would I proceed to hook memory
allocations? I assume profiling tools already do this, no?
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@example.com.
For more options, visit https://groups.google.com/groups/opt_out.