Class: Rack::AllocationTracerMiddleware::TotalTracer

Inherits:
Tracer
  • Object
show all
Defined in:
lib/rack/allocation_tracer.rb

Instance Method Summary collapse

Methods inherited from Tracer

#allocated_count_table_page, #allocation_trace_page, #call, #count_table_page, #freed_count_table_page

Constructor Details

#initialize(*args) ⇒ TotalTracer

Returns a new instance of TotalTracer.



84
85
86
87
88
# File 'lib/rack/allocation_tracer.rb', line 84

def initialize *args
  super
  ObjectSpace::AllocationTracer.setup %i(path line class)
  ObjectSpace::AllocationTracer.start
end