Module: GVLTools::WaitingThreads
- Defined in:
- lib/gvltools.rb
Constant Summary
Constants included
from AbstractInstrumenter
AbstractInstrumenter::TIMER_GLOBAL, AbstractInstrumenter::TIMER_LOCAL, AbstractInstrumenter::WAITING_THREADS
Class Method Summary
collapse
Class Method Details
.enable ⇒ Object
99
100
101
102
103
104
|
# File 'lib/gvltools.rb', line 99
def enable
unless enabled?
reset
end
super
end
|
.reset ⇒ Object
106
107
108
109
110
111
112
|
# File 'lib/gvltools.rb', line 106
def reset
if enabled?
raise Error, "can't reset WaitingThreads counter while it is active"
else
_reset
end
end
|