% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diagnostics.R
\name{copy_report}
\alias{copy_report}
\title{Data Copy Report}
\usage{
copy_report(result = NULL)
}
\arguments{
\item{result}{Optional. A \code{shard_result} object to extract copy stats from.}
}
\value{
An S3 object of class \code{shard_report} with type \code{"copy"}
containing:
\itemize{
\item \code{type}: "copy"
\item \code{timestamp}: When the report was generated
\item \code{borrow_exports}: Number of borrowed input exports
\item \code{borrow_bytes}: Total bytes in borrowed inputs
\item \code{result_imports}: Number of result imports
\item \code{result_bytes}: Estimated bytes in results
\item \code{buffer_writes}: Number of buffer write operations
\item \code{buffer_bytes}: Total bytes written to buffers
}
}
\description{
Generates a report of data transfer and copy statistics during parallel
execution.
}
\examples{
\donttest{
res <- shard_map(shards(100, workers = 2), function(s) sum(s$idx), workers = 2)
pool_stop()
copy_report(res)
}
}
