powered by
Generates a report of memory usage across all workers in the pool.
mem_report(pool = NULL)
An S3 object of class shard_report with type "memory"
shard_report
"memory"
containing:
type: "memory"
type
timestamp: When the report was generated
timestamp
pool_active: Whether a pool exists
pool_active
n_workers: Number of workers
n_workers
rss_limit: RSS limit per worker (bytes)
rss_limit
total_rss: Sum of RSS across all workers
total_rss
peak_rss: Highest RSS among workers
peak_rss
mean_rss: Mean RSS across workers
mean_rss
workers: Per-worker RSS details
workers
Optional. A shard_pool object. If NULL, uses the current pool.
shard_pool
# \donttest{ p <- pool_create(2) mem_report(p) pool_stop(p) # }
Run the code above in your browser using DataLab