Open Trace Format 2’s Python interface

The OTF2 library provides an interface to write and read trace data.

OTF2 is developed within the Score-P project. The Score-P project is funded by the German Federal Ministry of Education and Research. OTF2 is available under the BSD open source license that allows free usage for academic and commercial applications.

About the Python interface

The Python OTF2 interface comprises two parts.

  1. The low-level Python interface in the _otf2 module
  2. The high-level Python interface in the otf2 module

The low-level interface is implemented using ctypes. The main goal for the low-level interface was to hide ctypes from the user. Besides that, it sticks as near as possible to the original C interface. See The low-level OTF2 bindings for Python.

The high-level interface is built on top of the low-level interface with the aim of hiding all those nitty gritty details. This part of the interface is described here in detail.

Indices and tables