This folder contains the Python instrumentation module.
Requires that setuptools
(comes with pip) and wheel
Python packages are installed (standard installers).
A global Palanteer
installation is described in ./INSTALL.md .
The CMake target for this component is "python_instrumentation"
Profiling can be done:
-
With unmodified code:
python -m palanteer [options] <your script>
This syntax is similar to the
cProfile
usage and no script modification is required.
By default, it tries to connect to a Palanteer server. With options, offline profiling can be selected.
Launchpython -m palanteer
for help or refer to the documentation. -
With code instrumentation:
Please refer to the documentation for details.
Manual instrumentation can provide additional valuable information compared to just the automatic function profiling, like data, locks, ...