New Features

  • profmem() gained argument on_error to control what should happen when there is a run-time error during profiling. Known actions are "error", "warning", and "ignore" (default).

  • print() for Rprofmem objects now report on any run-time errors that occurred while profiling the R expression.

  • print() for Rprofmem objects gained logical argument `calls’ to control whether calls (“traces”) are outputted.

New Features

  • The defaults of arguments expr and newpage of print() for Rprofmem can now be set via options profmem.print.expr and profmem.print.newpage.

Documentation

  • Added documentation on what an ‘Rprofmem’ data.frame contains.

  • Added example for readRprofmem().

Consistency

  • The bytes column returned by readRprofmem() would be of type integer when zero allocation events where read, whereas otherwise it would be of type numeric.

  • print(x) for Rprofmem now uses an explicit stringsAsFactors = FALSE when internally coercing x to a data frame.

Significant Changes

  • Nested profmem() calls are now supported, such that inner profmem() calls will not affect outer ones. This allows, for instance, a package to use profmem internally without having to worry about profmem already being active when its functions are called.

New Features

Documentation

  • Vignette: Updated the example in Section ‘An example where memory profiling can make a difference’ due to improvements in R (>= 3.4.0), which made the previous example no longer valid.

  • help("profmem") how provide much more details previously only available in the vignette.

Bug Fixes

New Features

  • profmem() now returns a data.frame of class Rprofmem.

  • profmem() gained argument threshold.

Code Quality

  • 100% test coverage.

Documentation

  • Added vignette.

New Features

New Features

  • Added total() to get the total number of bytes allocated.

  • profmem() returns also when evaluating the expression gives an error.

Significant Changes