start_perftrack: start_perftrack

Description Usage Arguments Details Value Author(s) Examples

View source: R/start_perftrack.R

Description

starts collection of information about memory, disk and CPU usage of rsession and other processes

Usage

1
2
3
start_perftrack(timestep = 1, trackmem = TRUE, trackCPU = TRUE,
  trackdisk = TRUE, gc_onstart = TRUE, add_processes = "",
  outfile = tempfile(fileext = ".txt"))

Arguments

timestep

integer, timestep used for recording performance, Default: 1

trackmem

logical, If TRUE, monitor memory usage, Default: TRUE

trackCPU

logical, If TRUE, monitor CPU usage, Default: TRUE

trackdisk

logical, If TRUE, monitor disk usage, Default: TRUE

add_processes

character array containg the names of other processes to be monitored, Default: NULL

outfile

character, Full path of a file used to store the csv file used to store performance data. Defaults to a temporary file: tempfile(fileext = ".txt")

Details

On Windows, the function calls typeperf. On Linux, it calls ???

Value

The function is called for its side effects. It starts monitoring performances and strore useful information in baseenv.

Author(s)

Lorenzo Busetto, phD (2018) [email protected]

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

lbusett/memtrack documentation built on Dec. 2, 2018, 12:19 p.m.