lsd*_*sdr 45 ruby profiling ruby-on-rails
我一直在寻找Rails的分析工具.我正在玩和测试ruby-prof和railsbench,但是我对使用然后工作所需的调整和修改量感到沮丧.
虽然我不介意(很多)调整,但我想知道是否还有其他更直接易用的工具来分析Rails应用程序?你推荐哪些工具?
mwi*_*ams 44
您也可以使用内置的分析器:
$ ruby script/performance/profiler 'User.new' 5
% cumulative self self total
time seconds seconds calls ms/call ms/call name
189.25 1.76 1.76 1 1760.00 1760.00 Profiler__.start_profile
43.01 2.16 0.40 115 3.48 3.91 ActiveRecord::ConnectionAdapters::Column#simplified_type
8.60 2.24 0.08 15 5.33 8.67 Array#each
7.53 2.31 0.07 115 0.61 5.39 ActiveRecord::ConnectionAdapters::Column#initialize
6.45 2.37 0.06 115 0.52 0.52 ActiveRecord::ConnectionAdapters::Column#type_cast
5.38 2.42 0.05 690 0.07 0.07 Regexp#===
0.00 2.69 0.00 10 0.00 0.00 Process.times
0.00 2.69 0.00 10 0.00 0.00 Benchmark.times
Run Code Online (Sandbox Code Playgroud)
请注意,对于Rails 3,您可以使用rails profiler
.
归档时间: |
|
查看次数: |
19152 次 |
最近记录: |