load_memory_use: Load memory use information from a _MemoryTracker_ database

Description Usage Arguments Value Examples

View source: R/loading_data.R

Description

Open the specified MemoryTracker database file, and read the specified table name info a dataframe. If lbl is non-NULL, the returned dataframe will contain a column named lbl, containing the user-supplied label. The intent is that this label allows many such dataframes, each with a distinct label, to be concatenated with dplyr::rbind_list or rbind, and used for comparitive analysis. Consult the MemoryTracker documentation for a list of the tables that are available.

Usage

1
load_memory_use(filename, tablename, lbl = NULL)

Arguments

filename

The name of the MemoryTracker data file to open.

tablename

The name of the table to be read.

lbl

The label to be applied to each row in the dataframe; default is NULL.

Value

a dataframe

Examples

1
2
3
4
5
6
7
## Not run: 
d1 <- load_memory_use("woof/memory.db", "ModuleInfo", "woof")
d2 <- load_memory_use("woof/memory.db", "EventInfo")
d3 <- load_memory_use("woof/memory.db", "OtherInfo")
d4 <- load_memory_use("woof/memory.db", "PeakUsage")

## End(Not run)

marcpaterno/artsupport documentation built on May 6, 2020, 1:46 a.m.