Run with
bundle install --binstubs
mkdir reports
bin/ruby-prof --mode=cpu -x 'Kernel#gem_original_require' -x 'Kernel#require' -x 'Kernel#load' -f reports -p multi --exclude-common-callbacks --exclude-common-cycles -- bin/fluentd --config fluent.conf --no-supervisor
- Ctrl-C after a few seconds and wait for it to finish
- Look at reports/