| report | R Documentation |
Primary entry point for shard diagnostics. Generates a comprehensive report of the current runtime state including pool status, memory usage, and execution statistics.
report(level = c("summary", "workers", "tasks", "segments"), result = NULL)
level |
Character. Detail level for the report:
|
result |
Optional. A |
An S3 object of class shard_report containing:
level: The requested detail level
timestamp: When the report was generated
pool: Pool status information (if pool exists)
memory: Memory usage summary
workers: Per-worker details (if level includes workers)
tasks: Task execution details (if level includes tasks)
segments: Segment details (if level includes segments)
result_diagnostics: Diagnostics from shard_result (if provided)
res <- shard_map(shards(100, workers = 2), function(s) sum(s$idx), workers = 2)
pool_stop()
report(result = res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.