class

Dumpster::HeapReader

Inherits Iterator < Numcry::Accumulate::Ext < Enumerable < Numcry::Accumulate::Ext < Reference < Object

Reader for Ruby heap memory dumps collected from the ObjectSpace module.

Stored dump files are in the http://jsonlines.org/ format. These can contain multiple gigabytes of data depending on the application being analysed. To reduce the resource overhead required to parse, HeapReader provides an efficient interface for iterating over these lazilly and emitting parsed structs.

Constructors

new(io : IO, parsers = 16)
Source

Instance methods

next

See Iterator#next

Source
rewind

See Iterator#rewind

Source