How to efficiently use Rprof in R?

前端 未结 4 1522
深忆病人
深忆病人 2020-11-28 01:50

I would like to know if it is possible to get a profile from R-Code in a way that is similar to matlab\'s Profiler. That is, to get to know which l

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 02:14

    I currently have R uninstalled here, but in SPlus you can interrupt the execution with the Escape key, and then do traceback(), which will show you the call stack. That should enable you to use this handy method.

    Here are some reasons why tools built on the same concepts as gprof are not very good at locating performance problems.

提交回复
热议问题