module Memory::Win32
Constants
- PROCESS_MEMORY_COUNTERS
Public Instance Methods
memory_info()
click to toggle source
# File lib/memory_status.rb, line 71 def memory_info size = PROCESS_MEMORY_COUNTERS.size data = PROCESS_MEMORY_COUNTERS.malloc data.cb = size data if GetProcessMemoryInfo(GetCurrentProcess(), data, size) end