您推荐使用哪些工具来分析 Rails 应用程序? [关闭]

2024-05-08

我一直在寻找 Rails 的分析工具。我目前正在玩和测试 ruby​​-prof 和 Railsbench,但我对使其工作所需的大量调整和修改感到有点沮丧。

虽然我不介意(太多)调整,但我想知道是否有其他更直接且易于使用的工具来分析 Rails 应用程序?您推荐哪些工具?


您可以使用内置分析器 http://wiki.rubyonrails.org/rails/pages/ProfilerScript还有:

$ 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

请注意,对于 Rails 3,您可以使用rails profiler.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

您推荐使用哪些工具来分析 Rails 应用程序? [关闭] 的相关文章

随机推荐