Module: FiberAudit::Runtime::Probes::Synchronization::MutexHook
- Defined in:
- lib/fiber_audit/runtime/probes/synchronization.rb
Instance Method Summary collapse
Instance Method Details
#lock ⇒ Object
13 14 15 |
# File 'lib/fiber_audit/runtime/probes/synchronization.rb', line 13 def lock(...) Registry.observe(operation: 'Mutex#lock') { super } end |
#synchronize ⇒ Object
17 18 19 |
# File 'lib/fiber_audit/runtime/probes/synchronization.rb', line 17 def synchronize(...) Registry.observe(operation: 'Mutex#synchronize') { super } end |
#try_lock ⇒ Object
21 22 23 24 25 26 |
# File 'lib/fiber_audit/runtime/probes/synchronization.rb', line 21 def try_lock(...) Registry.observe( operation: 'Mutex#try_lock', measurement_builder: TRY_LOCK_MEASUREMENTS ) { super } end |