I know how to start ruby-prof with a script:
ruby-prof -p multi [SCRIPT_PATH]/my_script.rb
but how can I run ruby-prof with a script that takes arguments ?
I know how to start ruby-prof with a script:
ruby-prof -p multi [SCRIPT_PATH]/my_script.rb
but how can I run ruby-prof with a script that takes arguments ?
Copyright © 2021 Jogjafile Inc.
Most commands that run another command will let you do this with the special double dash
--option, followed by the arguments you want to pass through. ruby-prof follows this norm.If you have a Ruby file like this:
You can run
ruby-proflike this and get the args:So in your specific case, you can do this: