search for: summaryrprof2

Displaying 1 result from an estimated 1 matches for "summaryrprof2".

Did you mean: summaryrprof
2010 Sep 23
0
R CMD Rprof --help suggestion
...it being slower than R CMD Rprof for large files no longer applies? PS 2: summaryRprof() currently does not appear to support these min % options. I find them quite useful so I would like to request them to be added. By looking at how .Rprof() post-processes summaryRprof(), a quick hack I use is summaryRprof2 <- function(..., mintotal=-1L, minself=-1L) { res <- utils::summaryRprof(...) if (mintotal>0) res$by.total <- res$by.total[res$by.total[,"total.pct"]>=mintotal,] if (minself>0) res$by.self <- res$by.self[res$by.self[,"self.pct"]>=minself,] return(...