论坛首页 Ruby版 rails

如何用script/performance/profiler 测试 contorller中的代码的性能

浏览 388 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
最后更新时间:2007-10-10
script/performance/profiler 测试model代码,没有什么问题,但是测试contorller 总是出错

script/performance/profiler  "TestController.new" 这样的测试命令 就会出现错误。

Loading Rails...
Using the standard Ruby profiler.
D:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependenci
es.rb:267:in `load_missing_constant': uninitialized constant ApplicationControll
er (NameError)



有什么办法来测试 controller 代码的性能问题?
   
论坛首页 Ruby版 rails

跳转论坛:
JavaEye推荐