Sha256: 5cad979c462cc07b6c56f34281b2b36d7b306e75a0c8d2b4b71188fdbdb52b19

Contents?: true

Size: 767 Bytes

Versions: 32

Compression:

Stored size: 767 Bytes

Contents

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

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

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

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

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

end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
libcouchbase-mapo-1.4.1 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.3.2 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.3.0 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.2.8 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.2.7 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.2.6 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.2.5 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.2.4 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.2.3 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.2.2 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.2.1 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.2.0 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.1.1 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.1.0 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.0.4 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.0.3 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.0.2 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.0.1 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-1.0.0 lib/libcouchbase/ext/libcouchbase/histogram.rb
libcouchbase-0.3.3 lib/libcouchbase/ext/libcouchbase/histogram.rb