Sha256: 6e2908a7d3fc5cbae53dc1fa4347215d2abde13d3bc0ec54418fdc5b60528cfc
Contents?: true
Size: 586 Bytes
Versions: 5
Compression:
Stored size: 586 Bytes
Contents
module PlainApm module Extensions module ThreadAllocations module ActiveSupportEvent def start! super @thread_allocation_count_start = now_thread_allocations end def finish! super @thread_allocation_count_finish = now_thread_allocations end def thread_allocations @thread_allocation_count_finish - @thread_allocation_count_start end def now_thread_allocations PlainApm::ObjectTracing.total_thread_allocated_objects end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems