1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/profile.rb
kazu 710d9384e7 lib/profile.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-01-15 02:56:04 +00:00

11 lines
235 B
Ruby

# frozen_string_literal: true
require 'profiler'
RubyVM::InstructionSequence.compile_option = {
:trace_instruction => true,
:specialized_instruction => false
}
END {
Profiler__::print_profile(STDERR)
}
Profiler__::start_profile