cacheout_get_process_memory
Retrieve top processes by memory usage on macOS, sorted by RSS or physical footprint.
Instructions
Get top processes by memory usage on macOS.
Returns a ranked list of the top N processes sorted by memory consumption.
In standalone mode, uses RSS from ps (labeled as an estimate).
In app mode, uses physical footprint from the Cacheout CLI.
Sort keys are mode-dependent:
standalone: 'rss' (default)
app: 'phys_footprint' (default)
The capabilities map in the response shows which sort keys are available.
sort_by_pageins is gated to false in all modes this phase.
Args: params: top_n (default 10) and optional sort_by key.
Returns: str: JSON envelope with mode, capabilities, data (processes + sort info), partial.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |