Module XRay::DTrace::Tracer::Leopard
In: lib/xray/dtrace/tracer/leopard.rb

Wrapper around OS X DTracer exposing a custom API and namespace.

Methods

enabled?   fire   firing  

Public Instance methods

[Source]

    # File lib/xray/dtrace/tracer/leopard.rb, line 19
19:         def enabled?
20:           DTracer.enabled?
21:         end

[Source]

    # File lib/xray/dtrace/tracer/leopard.rb, line 8
 8:         def fire(name, data = nil)
 9:           DTracer.fire(name, data)
10:         end

[Source]

    # File lib/xray/dtrace/tracer/leopard.rb, line 12
12:         def firing(name, data = nil)
13:           fire(name + "-start", data)
14:           result = yield
15:           fire(name + "-end", data)
16:           result
17:         end

[Validate]