Class: Rack::SpeedTracer::TraceRecord
- Inherits:
-
Object
- Object
- Rack::SpeedTracer::TraceRecord
- Defined in:
- lib/rack/speedtracer/tracer.rb
Direct Known Subclasses
Instance Method Summary collapse
- #finish ⇒ Object
-
#initialize(id) ⇒ TraceRecord
constructor
A new instance of TraceRecord.
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
#finish ⇒ Object
11 |
# File 'lib/rack/speedtracer/tracer.rb', line 11 def finish; @finish = Time.now; end |