Class: GetProcessMem::Darwin

Inherits:
Object
  • Object
show all
Extended by:
FFI::Library
Defined in:
lib/get_process_mem/darwin.rb

Defined Under Namespace

Classes: TaskInfo

Constant Summary collapse

PROC_PIDTASKINFO =

from sys/proc_info.h

4

Class Method Summary collapse

Class Method Details

.resident_size(pid) ⇒ Object


46
47
48
# File 'lib/get_process_mem/darwin.rb', line 46

def resident_size(pid)
  get_proc_pidinfo(pid)[:pti_resident_size]
end