gc.time

0th

Percentile

Report Time Spent in Garbage Collection

This function reports the time spent in garbage collection so far in the R session while GC timing was enabled.

Keywords
utilities
Usage
gc.time(on = TRUE)
Arguments
on

logical; if TRUE, GC timing is enabled.

Details

Due to timer resolution this may be under-estimate.

This is a primitive.

Value

A numerical vector of length 5 giving the user CPU time, the system CPU time, the elapsed time and children's user and system CPU times (normally both zero), of time spent doing garbage collection whilst GC timing was enabled.

Times of child processes are not available on Windows and will always be given as NA.

See Also

gc, proc.time for the timings for the session.

Aliases
  • gc.time
Examples
library(base) # NOT RUN { gc.time() # }
Documentation reproduced from package base, version 3.6.0, License: Part of R 3.6.0

Community examples

Looks like there are no examples yet.