log_plot | R Documentation |
Visualize a metric of a log over time for a single process ID in a single log file.
log_plot(log, pid = NULL, name = NULL, phase = NULL, metric = "resident", ...)
log |
Data frame returned by |
pid |
Either |
name |
Either |
phase |
Either |
metric |
Character string with the name of a metric to plot
against time. Must be only a single string.
Defaults to the resident set size (RSS), the total amount of memory
used by the process.
See |
... |
Named optional parameters to pass to the base
function |
A base plot of a metric of a log over time.
path <- tempfile()
log_start(seconds = 0.25, path = path)
Sys.sleep(1)
log_stop()
Sys.sleep(2)
log <- log_read(path)
log_plot(log, metric = "cpu")
unlink(path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.