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.

Intended users

Sasha (Software Developer)

Devon (DevOps Engineer)

Proposal

Today, 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>, where <profile-mode> can be execution or memory.

If --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 bin/profile-url.

Links / references

https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/profiling.md

Assignee Loading
Time tracking Loading