see https://github.com/bf4/code_metrics/blob/bfebee2783/lib/code_metrics/profiler.rb and https://github.com/bf4/code_metrics/blob/bfebee2783/bin/code_metrics-profile