Skip to contents

lifecycle-experimental

Compute cpu times using base::proc.time() and mass storage using base::gc()

Usage

session_runtime(compute_mass_storage = TRUE)

Arguments

compute_mass_storage

(logical, default TRUE) Do the mass storage is computed from base::gc() function

Value

A list of values

Author

Adrien Taudière

Examples

session_runtime()
#> $cpu_times_users
#> user.self 
#>     7.796 
#> 
#> $cpu_times_system
#> user.child 
#>      2.005 
#> 
#> $time_elapsed
#> elapsed 
#>  13.732 
#> 
#> $cpu_times
#> user.self 
#>     9.801 
#> 
#> $mass_storage_used
#> [1] 236.2
#> 
#> $mass_storage_max
#> [1] 358.5
#> 
session_runtime(compute_mass_storage = FALSE)
#> $cpu_times_users
#> user.self 
#>     8.264 
#> 
#> $cpu_times_system
#> user.child 
#>      2.005 
#> 
#> $time_elapsed
#> elapsed 
#>  14.201 
#> 
#> $cpu_times
#> user.self 
#>    10.269 
#>