Lightweight Ruby allocation tracker