'tmp/perflab'.freeze
'profiler.dump'.freeze
7 8 9 10 11 12
# File 'lib/perflab/profiler.rb', line 7 def profile(lambda) FileUtils.mkdir_p(DIRECTORY) path = "#{DIRECTORY}/#{FILENAME}" StackProf.run(mode: :wall, out: path, raw: true) { lambda.call } end