memory_profiler icon indicating copy to clipboard operation
memory_profiler copied to clipboard

What is the proper way to use memory_profiler with a rake task?

Open georgeu2000 opened this issue 1 year ago • 0 comments

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

georgeu2000 avatar Apr 05 '24 23:04 georgeu2000