Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 如何在Ruby 2.2中获得对Ruby Prof特性的支持?_Ruby On Rails_Ruby_Testing_Performance Testing - Fatal编程技术网

Ruby on rails 如何在Ruby 2.2中获得对Ruby Prof特性的支持?

Ruby on rails 如何在Ruby 2.2中获得对Ruby Prof特性的支持?,ruby-on-rails,ruby,testing,performance-testing,Ruby On Rails,Ruby,Testing,Performance Testing,我目前正在运行ruby 2.2.2和rails 4.2,当我在GEM文件中包含“rails perftest”和“ruby prof”时,我得到了以下输出 wall_time: 7 ms memory: unsupported objects: unsupported gc_runs: 0 gc_time: 0 ms 有没有办法查看内存和对象输出,或者ruby 2.2.2完全不可能做到这一点?因此,到目前为止,这些功能无法正常工作,原因如下: “rails perftest”gem依赖于“ru

我目前正在运行ruby 2.2.2和rails 4.2,当我在GEM文件中包含“rails perftest”和“ruby prof”时,我得到了以下输出

wall_time: 7 ms
memory: unsupported
objects: unsupported
gc_runs: 0
gc_time: 0 ms

有没有办法查看内存和对象输出,或者ruby 2.2.2完全不可能做到这一点?

因此,到目前为止,这些功能无法正常工作,原因如下:

“rails perftest”gem依赖于“ruby prof”gem,据“ruby prof”gem的开发人员称,这是由于“rails perftest”gem包含关于如何使用某些方法的错误假设造成的(见此处:)。在“rails性能测试”github回购协议上出现了一些问题,但我最近没有看到太多进展


本质上,问题在于“rails perftest”gem本身,而这个问题在gem出现之前是无法修复的。

嘿,你成功地让它工作了吗?我有点困在同一个问题上。没有,但我补充了一个答案,解释了原因。谢谢。我今天得出了同样的结论。