Method: XRay::DTrace::Tracer#fire
- Defined in:
- lib/xray/dtrace/tracer.rb
#fire(name, data = nil) ⇒ Object
Fire an application-level probe using ruby-probe.
The first argument passed will be passed to the D script as arg0 for the ruby-probe probe. This is conventionally a probe name.
The second argument is optional and can be used to pass additional data into the D script as arg1.
Example:
XRay::DTrace::Tracer.fire(‘service-start’, “order processing”)
XRay::DTrace::Tracer.fire(‘service-stop’)
31 32 |
# File 'lib/xray/dtrace/tracer.rb', line 31 def fire(name, data = nil) end |