You copied the Doc URL to your clipboard.

Profiling a Python module

To profile all functions in a Python module, you can run it in the module.


  1. Start Arm Streamline to capture trace information.
  2. Start your Python module:

    Use the -m argument to run accepts your Python module as an argument.

    python -m gator [gator_args...] <user_module> [user_module_args...] accepts the following arguments:

    -hPrints a description of the options.
    -dEnable debug messages.
    -tBy default, uses profiling mode. When this flag is set, trace mode is used which traces line numbers rather than just function call entry and exits.
    <user_module>The Python module to execute followed by its arguments.