Provide a new build target `host-gprof` that enables profiling.
ADD
target/host-gprof.rb
+MRuby::Build.new do |conf|
+ # load specific toolchain settings
+ toolchain :gcc
+
+ # include the GEM box
+ conf.gembox 'full-core'
+
+ conf.cc.defines = %w(MRB_METHOD_CACHE)
+ conf.cc.flags << '-pg'
+ conf.linker.flags << '-pg'
+
+ # Turn on `enable_debug` for better debugging
+ enable_debug
+ conf.enable_test
+end

Provide a new build target `host-gprof` that enables profiling.