I want to profile a module that takes arguments with -- . cProfile then thinks that these are arguments for themselves. How can I work around this?
py -3.9 -m cProfile -m my_module -o statistics --my-argument
Usage: cProfile.py [-o output_file_path] [-s sort] [-m module | scriptfile] [arg] ...
cProfile.py: error: no such option: --my-argument