[英]How to reduce the number of methods omitted by Rubinius' profiler
当我运行Rubinius的分析器时 ,使用类似的东西
ruby -Xprofiler.graph test/test_suite.rb
在测试套件中有以下内容
# Code for actual tests here
# create a profiler instance
profiler = Rubinius::Profiler::Instrumenter.new
# start the profiler
profiler.start
# Run test unit now
require 'test/unit'
class Test::Unit::Runner
@@stop_auto_run = true
end
Test::Unit::Runner.new.run(ARGV)
profiler.stop
# print out the profiler info
profiler.show # takes on IO object, defaults to STDOUT
我经常看到类似的东西
1,379 methods omitted
1,424 methods called a total of 0 times
大概是因为剩下的方法太小而无法达到一定的时间阈值。
我尝试使用类似-Xprofiler.threshold=10000
东西,但它似乎没有帮助。
如何修改Rubinius的探查器省略了多少方法?
使用-Xprofiler.full_report选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.