[enhancement] Integrate a profiler with Autosubmit
Working on this issue at MR !350 (merged)
It would be useful to have a way to run Autosubmit with a profiler, but without having to install a profiler module and modify the Autosubmit source code.
For this issue, an initial implementation would use the Python built-in modules for profiling, and integrate it with the autosubmit run
command automatically, so users can enable or disable it (it must be disabled by default).
This feature is already present in another Python workflow manager called Cylc: https://github.com/cylc/cylc-flow/blob/master/cylc/flow/profiler.py
The profiler must be disabled and not interfere with Autosubmit commands by default. It must work on the laptop of common users, workflow developers, Autosubmit developers, and also on other servers/platforms like MareNostrum4, Nord3, or external sites like LUMI.
It must produce simple output that gives users a simple view of the performance profile of Autosubmit, which can be useful to verify system performance and/or performance regressions between releases.
-Bruno