r - Getting more info from Rprof() -


i've been trying dig time-hogs in r code i've written, i'm using rprof. output isn't yet helpful though:

> summaryrprof() $by.self                       self.time self.pct total.time total.pct "$<-.data.frame"           2.38     23.2       2.38      23.2 "fun"                      2.04     19.9      10.20      99.6 "[.data.frame"             1.74     17.0       5.54      54.1 "[.factor"                 1.42     13.9       2.90      28.3 ... 

is there way dig deeper , find out specific invocations of $<-.data.frame, , fun (which by()), etc. culprits? or need refactor code , make smaller functional chunks in order more fine-grained results?

the reason i'm resisting refactoring i'd have pass data structures functions, , passing value, seems step in wrong direction.

thanks.

the existing cran package profr , proftools useful this. latter can use rgraphviz isn't installable.

the r wiki page on profiling has additional info , nice script romain can visualize (but requires graphviz).


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -