Intel® Trace Analyzer and Collector User and Reference Guide

ID 767272
Date 3/31/2023
Document Table of Contents

OTF2 Format Support


This is a preview feature. A preview feature may be changed or removed in a future production release.

Apart from the native STF format, Intel® Trace Analyzer can also open trace files in the OTF2 format (Open Trace Format, version 2). However, before opening an OTF2 trace file, the tool needs to convert it to STF. There are two options to do this:

  • Use the command-line otf2-to-stf utility. See otf2-to-stf Utility for details.

  • Use the conversion dialog box when opening the OTF2 file. See the instructions below.

To open an OTF2 trace file, do the following:

  1. Invoke the Intel Trace Analyzer GUI:

    $ traceanalyzer &

  2. Go to File > Open.

  3. From the Files of type field select Open Trace Format, navigate to the .otf2 file and double-click it open.

  4. The OTF2 to STF conversion dialog appears. Review the available fields and checkboxes and click Start to start conversion.

As a result, the OTF2 file will be converted to STF, and you will be able to view it in Intel Trace Analyzer.

There are currently a few limitations related to this functionality:

  • The functionality is available on Linux* OS only.

  • Identification of function locations in source code is not supported.

  • Due to limitations in the OTF2 API, the converter may improperly write information about non-blocking collective operations.