Learn R Programming

shard (version 0.1.0)

copy_report: Data Copy Report

Description

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

Usage

copy_report(result = NULL)

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

Arguments

result

Optional. A shard_result object to extract copy stats from.

Examples

Run this code
# \donttest{
res <- shard_map(shards(100, workers = 2), function(s) sum(s$idx), workers = 2)
pool_stop()
copy_report(res)
# }

Run the code above in your browser using DataLab