View source: R/crew_options_metrics.R
crew_options_metrics | R Documentation |
crew_options_metrics()
configures the
crew
to record resource usage metrics (such as CPU and memory usage)
for each running worker.
To be activate resource usage logging,
the autometric
R package version 0.1.0 or higher
must be installed.
Logging happens in the background (through a detached POSIX)
so as not to disrupt
the R session. On Unix-like systems, crew_options_metrics()
can specify /dev/stdout
or /dev/stderr
as the log files, which will
redirect output to existing logs you are already using.
autometric::log_read()
and autometric::log_plot()
can read and
visualize resource usage data from multiple log files, even
if those files are mixed with other messages.
crew_options_metrics(path = NULL, seconds_interval = 5)
path |
Where to write resource metric log entries for workers.
After running enough tasks in |
seconds_interval |
Positive number, seconds between resource metric
log entries written to |
A classed list of options for logging resource usage metrics.
Other options:
crew_options_local()
crew_options_metrics()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.