Sha256: 38cd635217d35e8b619cc5d2c7a50eb8eeafaee852a560d9c4a98762ed1655c7

Contents?: true

Size: 777 Bytes

Versions: 4

Compression:

Stored size: 777 Bytes

Contents

module MTLibcouchbase::Ext
  # (Not documented)
  module HISTOGRAMWrappers
    # @return [nil]
    def destroy()
      MTLibcouchbase::Ext.histogram_destroy(self)
    end

    # @param [Integer] duration
    # @return [nil]
    def record(duration)
      MTLibcouchbase::Ext.histogram_record(self, duration)
    end

    # @param [FFI::Pointer(*Void)] cookie
    # @param [Proc(callback_histogram_callback)] cb
    # @return [nil]
    def read(cookie, cb)
      MTLibcouchbase::Ext.histogram_read(self, cookie, cb)
    end

    # @param [FFI::Pointer(*FILE)] stream
    # @return [nil]
    def print(stream)
      MTLibcouchbase::Ext.histogram_print(self, stream)
    end
  end

  class HISTOGRAM < FFI::Struct
    include HISTOGRAMWrappers
    layout :dummy, :char
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mt-libcouchbase-1.4.03 lib/mt-libcouchbase/ext/mt-libcouchbase/histogram.rb
mt-libcouchbase-1.4.02 lib/mt-libcouchbase/ext/mt-libcouchbase/histogram.rb
mt-libcouchbase-1.4.01 lib/mt-libcouchbase/ext/mt-libcouchbase/histogram.rb
mt-libcouchbase-1.4.0 lib/mt-libcouchbase/ext/mt-libcouchbase/histogram.rb