Registry / utility / allocation-tracer

allocation-tracer

JSON →
library0.6.3rbrubygemsunverified

Adds ObjectSpace::AllocationTracer module for tracing object allocations in Ruby.

gem install allocation_tracer
INSTALL
IMPORT
SIG · ALLOCATION-TRACER
A
allocation-tracer
utilityrubyv0.6.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ObjectSpace::AllocationTracer
require 'allocation_tracer'

Trace object allocations and display results.

require 'allocation_tracer' ObjectSpace::AllocationTracer.setup(%i{path line type}) ObjectSpace::AllocationTracer.trace do obj = "hello" end puts ObjectSpace::AllocationTracer.result
Debug
Known issues
gotchaRequires Ruby 2.1+ and may have performance overhead in production.
fix
Use only in development or debugging environments.
affects: >= 0.6.0
Upgrade
Version history
0.6.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
20
Meta
1
Amazon
1
OpenAI (training)
1
Resources
allocation-tracer — gem install allocation-tracer · libregistry