Interpreting trace data outside of the IDE

Updated: October 28, 2024

The System Profiler provides a flexible and powerful tool for viewing kernel event trace data. But if you prefer to directly read and interpret kernel event log (.kev) files, you can use non-IDE tools.

There are two ways to analyze kernel event trace data outside of the System Profiler:
traceprinter
This command-line utility parses the events in a log file and sends their data to standard output. The tool is designed for displaying text descriptions of kernel events captured by tracelogger.
For full details, see the traceprinter entry of the Utilities Reference.
traceparser*()
This set of C library functions lets you interpret logged kernel data within your own programs. It defines a parser for reading the specified log file and supports creating callbacks to process specific events.
For details on this API, see the traceparser() entry of the C Library Reference.
  翻译: