[英]How to reduce the number of methods omitted by Rubinius' profiler
When I run Rubinius' profiler , using something like 当我运行Rubinius的分析器时 ,使用类似的东西
ruby -Xprofiler.graph test/test_suite.rb
with the following within the test suite 在测试套件中有以下内容
# 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
I often see something like 我经常看到类似的东西
1,379 methods omitted
1,424 methods called a total of 0 times
presumably because the remaining methods are too small to meet some threshold of time taken. 大概是因为剩下的方法太小而无法达到一定的时间阈值。
I tried using something like -Xprofiler.threshold=10000
, but it didn't seem to help. 我尝试使用类似
-Xprofiler.threshold=10000
东西,但它似乎没有帮助。
How can I modify how many methods are omitted by Rubinius' profiler? 如何修改Rubinius的探查器省略了多少方法?
使用-Xprofiler.full_report选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.