copy_report: Data Copy Report

View source: R/diagnostics.R

copy_reportR Documentation

Data Copy Report

Description

Generates a report of data transfer and copy statistics during parallel execution.

Usage

copy_report(result = NULL)

Arguments

result

Optional. A shard_result object to extract copy stats from.

Value

An S3 object of class shard_report with type "copy" containing:

  • type: "copy"

  • timestamp: When the report was generated

  • borrow_exports: Number of borrowed input exports

  • borrow_bytes: Total bytes in borrowed inputs

  • result_imports: Number of result imports

  • result_bytes: Estimated bytes in results

  • buffer_writes: Number of buffer write operations

  • buffer_bytes: Total bytes written to buffers

Examples


res <- shard_map(shards(100, workers = 2), function(s) sum(s$idx), workers = 2)
pool_stop()
copy_report(res)


shard documentation built on April 3, 2026, 9:08 a.m.