User Guide

  • 2022.2
  • 08/08/2022
  • Public Content

stftool Utility


stftool <input file> <config options> --help --version


utility program reads a structured trace file (STF) in normal or single-file format. It can perform various operations with this file:
  • Extract all or a subset of the trace data (default)
  • Convert the file format without modifying the content (
  • List the components of the file (
  • Remove all components (
  • Rename or move the file (
  • List statistics (
The output and behavior of
is configured similarly to Intel® Trace Collector: with a configuration file, environment variables, and command-line options. The environment variable
can be set to the name of an Intel® Trace Collector configuration file. If the file exists and is readable, then it is parsed first. Its settings are overridden with environment variables, which in turn are overridden by configuration options on the command line.
All configuration options can be specified on the command line by adding the prefix '
' and listing its arguments after the keyword. The output format is derived automatically from the suffix of the output file. You can write to
by using '
' as the filename; this defaults to writing ASCII VTF*.
These are examples of converting the entire file into different formats:
stftool example.stf --convert example.avt # ASCII stftool example.stf --convert - # ASCII to stdout stftool example.stf --convert - --logfile-format SINGLESTF | gzip -c >example.single.stf.gz # gzipped single-file STF
Without the
switch one can extract certain parts, but only write VTF:
stftool example.stf --request 1s:5s --logfile-name example_1s5s.avt # extract interval as ASCII
All options can be given as environment variables. The format of the configuration file and environment variables are described in more detail in the documentation in the Configuration Reference section.

Product and Performance Information


Performance varies by use, configuration and other factors. Learn more at