- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我对如何让 Rprof
与 R 一起工作感到困惑。
我按照文档中的示例做了类似的事情
Rprof(filename="testProfile.out")
test()
Rprof(NULL)
summaryRprof("testProfile.out")
但是,在 testProfile.out
中,我有一行:sample.interval=20000
这让我很困惑,当我运行 summaryRProf
时,我得到 no events were recorded
如有任何建议,我们将不胜感激。
最佳答案
问题是我的测试完成得太快,而 Rprof 没有以足够快的间隔进行记录。要解决此问题,您可以设置 interval = 0.0002
或小于默认值 (0.02
) 的某个数字。我还能够通过多次迭代运行我的测试来解决这个问题。
关于r - 对 Rprof 和 R 感到困惑,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15866362/
我正在尝试使用分析来查看我的代码的哪一部分负责 3GB 的最大内存使用量(如 gc() 报告的最大已用内存统计数据, see here how )。我正在运行这样的内存分析: Rprof(line.p
我一直试图深入了解我编写的一些 R 代码中的时间 pig 是什么,所以我正在使用 Rprof .不过,输出还不是很有帮助: > summaryRprof() $by.self
我对如何让 Rprof 与 R 一起工作感到困惑。 我按照文档中的示例做了类似的事情 Rprof(filename="testProfile.out") test() Rprof(NULL) summ
我正在使用一个相对较大的 data.table数据集并尝试分析/优化代码。我正在使用 Rprof ,但我注意到在 setkey 操作中花费的大部分时间未包含在 Rprof 摘要中。有没有办法包括这个花
我是一名优秀的程序员,十分优秀!