Skip to main content

memsample

Sample current RSS memory usage.

def memsample(
state: any,
**kwargs: dict
) - > float

Sample current RSS memory usage.

Parameters

NameTypeDescription
stateanyThe current execution state or context of the worker process
**kwargsdictAdditional keyword arguments passed to the command inspector

Returns

TypeDescription
floatThe current Resident Set Size (RSS) memory usage in megabytes