简体   繁体   English

为什么鲨鱼会这么慢?

[英]Why could Shark be so slow?

I'm trying to profile Ruby interpreter. 我正在尝试分析Ruby解释器。 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. 我运行shark -i ./ruby bm_sudoku.rb或类似的脚本,脚本在不到一秒钟的时间内完成,然后Shark转到“ CHUDData-分析样品... 99.3%..”点,并在那里冻结10分钟左右。 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). 我在这里使用的版本是OSX 10.5,Shark 4.6.1(227)。

Any ideas what that might be? 任何想法可能是什么?

There's some sort of strange problem in 10.5 with Shark being glacially slow loading symbols which can take several minutes. 10.5中存在一个奇怪的问题,Shark是冰河缓慢加载符号,可能需要几分钟。 I don't see the problem in 10.6, and that seems to mirror the same behaviour seen by Chromium developers . 我看不到10.6中的问题,这似乎反映了Chromium开发人员所见的相同行为。

Try Instruments -- the CPU sampler is similar to shark and it is a lot faster. 尝试使用Instruments-CPU采样器类似于shark,并且速度更快。 No pause at the end. 最后没有暂停。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM