Class: Rack::SpeedTracer::TraceRecord

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/speedtracer/tracer.rb

Direct Known Subclasses

ServerEvent, Tracer

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ TraceRecord

Returns a new instance of TraceRecord.



5
6
7
8
9
# File 'lib/rack/speedtracer/tracer.rb', line 5

def initialize(id)
  @id = id
  @start = Time.now
  @children = []
end

Instance Method Details

#finishObject



11
# File 'lib/rack/speedtracer/tracer.rb', line 11

def finish; @finish = Time.now; end