powered by
Generates a report of copy-on-write behavior for borrowed inputs.
cow_report(result = NULL)
An S3 object of class shard_report with type "cow"
shard_report
"cow"
containing:
type: "cow"
type
timestamp: When the report was generated
timestamp
policy: The COW policy used ("deny", "audit", "allow")
policy
violations: Count of COW violations detected (audit mode)
violations
copies_triggered: Estimated copies triggered by mutations
copies_triggered
Optional. A shard_result object to extract COW stats from.
shard_result
# \donttest{ res <- shard_map(shards(100, workers = 2), function(s) sum(s$idx), workers = 2) pool_stop() cow_report(res) # }
Run the code above in your browser using DataLab