Sha256: adb224b7e4c9c2e84b27d62626e3785f7ca784b2a8fd886defeb7eeccdbfe7b1

Contents?: true

Size: 503 Bytes

Versions: 1

Compression:

Stored size: 503 Bytes

Contents

module XRay
  module DTrace
    module Tracer

      # Wrapper around OS X DTracer exposing a custom API and namespace.
      module Leopard
      
        def fire(name, data = nil)
          DTracer.fire(name, data)
        end

        def firing(name, data = nil)
          fire(name + "-start", data)
          result = yield
          fire(name + "-end", data)
          result
        end

        def enabled?
          DTracer.enabled?
        end
      
      end
      
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xray-1.1 lib/xray/dtrace/tracer/leopard.rb