Class: HeapProfiler::Diff::DumpSubset

Inherits:
Object
  • Object
show all
Defined in:
lib/heap_profiler/diff.rb

Instance Method Summary collapse

Constructor Details

#initialize(path, generation) ⇒ DumpSubset

Returns a new instance of DumpSubset.



6
7
8
9
# File 'lib/heap_profiler/diff.rb', line 6

def initialize(path, generation)
  @path = path
  @generation = generation
end

Instance Method Details

#each_object(&block) ⇒ Object



11
12
13
# File 'lib/heap_profiler/diff.rb', line 11

def each_object(&block)
  Parser.load_many(@path, since: @generation, &block)
end