aprof
function.
If a sourcefile was not specified in the aprof object, then the first file
within the profiling information is assumed to be the source.
readLineDensity(aprofobject = NULL, Memprof = FALSE)
aprof
, which
contains the stack calls sampled by the R profiler.