Solved by ptrblck in post #6 
              
              
                Yes, you can fine the CLI options here. The most basic would be nsys profile python script.py and you could add more options e.g. to create backtraces etc.