Allocation Tracking

Goal: To track allocations’s happening during the lifetime of a Ruby process.

Outcomes: When I run a program to completion with allocation tracking enabled I should present enough data to be able ot produce the following artifacts:

What do I need In order to acheive the outcomes, I think that, for each allocation, we need to record:

What are my options?

MallocStackLoggingNoCompact & malloc history


valgrind (massif)



manual instrumentation of a ruby binary