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 gator.py module.

Procedure

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

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

    python -m gator [gator_args...] <user_module> [user_module_args...]

    gator.py accepts the following arguments:

    -hPrints a description of the options.
    -dEnable debug messages.
    -tBy default, gator.py 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.