为什么鲨鱼会这么慢?
我正在尝试分析 Ruby 解释器。我运行 shark -i ./ruby bm_sudoku.rb
或类似的东西,脚本在不到一秒的时间内完成,然后 Shark 转到“CHUDData - 分析样本... 99.3%..”点并在那里冻结 10 分钟左右。它最终完成了,它的速度太慢了,几乎无法使用。
我这里的版本是 OSX 10.5,shark 4.6.1 (227)。
有什么想法吗?
I'm trying to profile Ruby interpreter. I run shark -i ./ruby bm_sudoku.rb
or something like that, the script finishes in less than a second, and then Shark goes to "CHUDData - Analyzing samples... 99.3%.." point and stays there frozen for 10 minutes or so. It finishes eventually, it's just so ridiculously slow it's pretty much unusable.
Version I have here is OSX 10.5, shark 4.6.1 (227).
Any ideas what that might be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
10.5 中有一些奇怪的问题,Shark 加载符号的速度非常慢,可能需要几分钟的时间。我在 10.6 中没有看到问题,这似乎反映了相同的行为 Chromium 开发人员看到了。
There's some sort of strange problem in 10.5 with Shark being glacially slow loading symbols which can take several minutes. I don't see the problem in 10.6, and that seems to mirror the same behaviour seen by Chromium developers.
尝试 Instruments——CPU 采样器与 shark 类似,而且速度要快得多。结尾没有停顿。
Try Instruments -- the CPU sampler is similar to shark and it is a lot faster. No pause at the end.