class Process::Metrics::Memory

Represents memory usage for a process, sizes are in kilobytes.

def self.capture(pid, **options)

Capture memory usage for the given process IDs.
def self.capture(pid, **options)
	return nil
end

def self.supported?

Whether the memory usage can be captured on this system.
def self.supported?
	false
end

def self.zero

def self.zero
	self.new(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
end

def to_json(*arguments)

Convert the object to a JSON string.
def to_json(*arguments)
	as_json.to_json(*arguments)
end

def total_size

The total size of the process in memory.
def total_size
	self.resident_size + self.swap_size
end

def unique_size

The unique set size, the size of completely private (unshared) data.
def unique_size
	self.private_clean_size + self.private_dirty_size
end