Sha256: 452d78a04fa58d39ff86a0ef5a5f20db8ef2e442369baf968ac0c15c2601ac9d

Contents?: true

Size: 672 Bytes

Versions: 2

Compression:

Stored size: 672 Bytes

Contents

require 'ffi/libc/types'
require 'ffi/libc/timeval'

module FFI
  module LibC
    #
    # @since 0.1.0
    #
    class RUsage < FFI::Struct

      layout :ru_utime, Timeval,
             :ru_stime, Timeval,
             :ru_maxrss, :long,
             :ru_ixrss, :long,
             :ru_idrss, :long,
             :ru_isrss, :long,
             :ru_minflt, :long,
             :ru_majflt, :long,
             :ru_nswap, :long,
             :ru_inblock, :long,
             :ru_oublock, :long,
             :ru_msgsnd, :long,
             :ru_msgrcv, :long,
             :ru_nsignals, :long,
             :ru_nvcsw, :long,
             :ru_nivcsw, :long

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffi-libc-0.1.1 lib/ffi/libc/rusage.rb
ffi-libc-0.1.0 lib/ffi/libc/rusage.rb