Generates a report of data transfer and copy statistics during parallel execution.
Value
An S3 object of class shard_report with type "copy"
containing:
type: "copy"timestamp: When the report was generatedborrow_exports: Number of borrowed input exportsborrow_bytes: Total bytes in borrowed inputsresult_imports: Number of result importsresult_bytes: Estimated bytes in resultsbuffer_writes: Number of buffer write operationsbuffer_bytes: Total bytes written to buffers
Examples
# \donttest{
res <- shard_map(shards(100, workers = 2), function(s) sum(s$idx), workers = 2)
pool_stop()
copy_report(res)
#> shard data copy report
#> Generated: 2026-03-30 20:47:12
#>
#> Borrowed inputs:
#> Exports: 0
#> Bytes: 0 B
#>
#> Results:
#> Imports: 8
#> Bytes: 1.6 KB
#>
#> Buffers:
#> Writes: 0
#> Bytes: 0 B
#>
#> Tables:
#> Writes: 0
#> Rows: 0
#> Bytes: 0 B
#>
#> Views:
#> Created: 0
#> Materialized: 0
#> Materialized bytes: 0 B
#> Packed: 0
#> Packed bytes: 0 B
# }