memory_profiler icon indicating copy to clipboard operation
memory_profiler copied to clipboard

Feature request: ability to profile commands

Open fatkodima opened this issue 2 years ago • 1 comments

Currently, CLI is able to profile only single ruby files via memory-profiler ruby_file.rb (we pass a file name and the gem loads it and profiles the memory). It will be very convenient to be able to profile whole commands/processes, like rspec, rails etc via something like memory-profiler run ...gem options... -- rails test ...command options....

The interface will like the one added for stackprof (https://github.com/tmm1/stackprof/pull/187).

If this is OK, I can open a PR.

fatkodima avatar Dec 30 '23 15:12 fatkodima

seems fine to me , sure give it a shot

SamSaffron avatar Jan 01 '24 22:01 SamSaffron