lib/lens/trace.rb in lens-0.0.8.2 vs lib/lens/trace.rb in lens-0.0.9
- old
+ new
@@ -6,10 +6,10 @@
@gc_statistics = Lens::GC.new
@gc_statistics.enable
@allocations_data = Lens::AllocationsData.new
- @allocations_data.enable
+ @allocations_data.enable if Lens.configuration.with_memory_usage?
end
def add(event)
@data.push event.payload.merge(
etype: event.name,