Method: Lens::Trace#initialize
- Defined in:
- lib/lens/trace.rb
#initialize(id) ⇒ Trace
Returns a new instance of Trace.
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/lens/trace.rb', line 3 def initialize(id) @id = id @data = [] @gc_statistics = Lens::GC.new @gc_statistics.enable @allocations_data = Lens::AllocationsData.new @allocations_data.enable if Lens.configuration.with_memory_usage? end |