Module: PlainApm::Extensions::ActiveSupport::Event
- Defined in:
- lib/plain_apm/extensions/active_support/event.rb
Instance Method Summary collapse
- #finish! ⇒ Object
- #gc_major_count ⇒ Object
- #gc_minor_count ⇒ Object
- #gc_time ⇒ Object
- #start! ⇒ Object
- #thread_allocations ⇒ Object
- #utc_time ⇒ Object
Instance Method Details
#finish! ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/plain_apm/extensions/active_support/event.rb', line 14 def finish! super @thread_allocation_count_finish = now_thread_allocations @gc_time_finish = now_gc_time @gc_major_count_finish = now_gc_major_count @gc_minor_count_finish = now_gc_minor_count end |
#gc_major_count ⇒ Object
30 31 32 |
# File 'lib/plain_apm/extensions/active_support/event.rb', line 30 def gc_major_count @gc_major_count_finish - @gc_major_count_start end |
#gc_minor_count ⇒ Object
34 35 36 |
# File 'lib/plain_apm/extensions/active_support/event.rb', line 34 def gc_minor_count @gc_minor_count_finish - @gc_minor_count_start end |
#gc_time ⇒ Object
26 27 28 |
# File 'lib/plain_apm/extensions/active_support/event.rb', line 26 def gc_time @gc_time_finish - @gc_time_start end |
#start! ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/plain_apm/extensions/active_support/event.rb', line 5 def start! super @utc_start = utc_now @thread_allocation_count_start = now_thread_allocations @gc_time_start = now_gc_time @gc_major_count_start = now_gc_major_count @gc_minor_count_start = now_gc_minor_count end |
#thread_allocations ⇒ Object
22 23 24 |
# File 'lib/plain_apm/extensions/active_support/event.rb', line 22 def thread_allocations @thread_allocation_count_finish - @thread_allocation_count_start end |
#utc_time ⇒ Object
38 39 40 |
# File 'lib/plain_apm/extensions/active_support/event.rb', line 38 def utc_time @utc_start end |