From 7e425ba4307a2adba3ad64845d621f48a43326cf Mon Sep 17 00:00:00 2001 From: Toby Dylan Hocking Date: Fri, 12 Apr 2024 16:17:22 -0700 Subject: [PATCH] memory=NULL --- NEWS | 3 ++- R/atime.R | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 873b757..de4b294 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ Changes in version 2024.4.12 -- atime_pkg gains tests.dir arg. +- atime_pkg gains tests.dir arg, thanks @MichaelChirico for the suggestion. +- atime no longer keeps memory column (sometimes too large) from bench::mark. Changes in version 2024.3.5 diff --git a/R/atime.R b/R/atime.R index 4ff907a..789605a 100644 --- a/R/atime.R +++ b/R/atime.R @@ -134,7 +134,11 @@ atime <- function(N, setup, expr.list=NULL, times=10, seconds.limit=0.01, verbos N.stats <- data.table(N=N.value, expr.name=not.done.yet, N.df) N.stats[, `:=`( kilobytes=as.numeric(mem_alloc)/1024, - mem_alloc=NULL, total_time=NULL, expression=NULL)] + memory=NULL, + mem_alloc=NULL, + total_time=NULL, + expression=NULL + )] summary.funs <- list( median=median, min=min, q25=function(x)quantile(x,0.25),