RubyGems Navigation menu

zenprofile 1.1.0

zenprofiler helps answer WHAT is being called the most. spy_on helps answer WHERE those calls are being made. ZenProfiler provides a faster version of the standard library ruby profiler. It is otherwise pretty much the same as before. spy_on provides a clean way to redefine a bottleneck method so you can account for and aggregate all the calls to it. % ruby -Ilib bin/zenprofile misc/factorial.rb 50000 Total time = 3.056884 Total time = 2.390000 total self self total % time seconds seconds calls ms/call ms/call name 50.70 1.64 1.64 50000 0.03 0.05 Integer#downto 19.63 2.27 0.63 200000 0.00 0.00 Fixnum#* 14.19 2.73 0.46 50000 0.01 0.05 Factorial#factorial 9.93 3.05 0.32 1 320.36 3047.10 Range#each 5.54 3.23 0.18 2 89.40 178.79 ZenProfiler#start_hook Once you know that Integer#downto takes 50% of the entire run, you can use spy_on to find it. (See misc/factorial.rb for the actual code): % SPY=1 ruby -Ilib misc/factorial.rb 50000 Spying on Integer#downto Integer.downto 50000: total 50000: ./misc/factorial.rb:6:in `factorial' via ./misc/factorial.rb:6:in `factorial'

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 1.3.2 - April 07, 2012 (13.0 KB)
  2. 1.3.1 - February 19, 2011 (13.0 KB)
  3. 1.3.0 - September 02, 2010 (13.0 KB)
  4. 1.2.0 - August 18, 2009 (10.0 KB)
  5. 1.1.0 - August 05, 2009 (13.0 KB)
显示所有版本 (共 6 个)

Runtime 依赖 (2):

event_hook >= 0
ZenTest >= 0

Development 依赖 (1):

hoe >= 2.3.0

业主:

作者:

  • Ryan Davis

SHA 256 校验和:

9e767f78c4a653a7149671901c56224b125494a95f2fa5decd905f0da4e2b839

下载总量 21,430

这个版本 3,433

许可:

需要的 Ruby 版本:

链接: