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, #lifetime_table_page

Constructor Details

#initialize(*args) ⇒ TotalTracer

Returns a new instance of TotalTracer.



98
99
100
101
102
103
# File 'lib/rack/allocation_tracer.rb', line 98

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