memory_profiler
memory_profiler copied to clipboard
What is the proper way to use memory_profiler with a rake task?
This seems to work but not sure if it creates incorrect results:
require 'memory_profiler'
report = MemoryProfiler.report do
`rake theTask`
end
report.pretty_print