Extend bin/profile-url with ability to specify profile mode
Problem to solve
As proposed in https://gitlab.com/gitlab-org/gitlab-ce/issues/62270#proposal, extend the https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/profiling.md to support profiling memory consumption, similarly to what is already documented.
bin/profile-url script has options as below:
Usage: bin/profile-url url --output= --sql= [--user=] [--post=] We can add new option
--mode=<profile-mode> is not given, by default it will be
execution. So the script behaviour will be backward compatible.
What does success look like, and how can we measure that?
Being able to perform memory profiling via