Capture AF SDK event trace output
- Last UpdatedJan 08, 2025
- 1 minute read
- PI System
- PI Server 2024 R2
- PI Server
You use the AF Get Trace utility (afgettrace.exe) to capture event trace output from the AF SDK. Event tracing can help you debug an application and perform capacity and performance analysis.
Note: Starting with PI AF 2018, the AFGetTrace utility includes a graphical user interface (GUI) that allows you to configure and view event trace sessions. By default, the AFGetTrace utility runs in GUI mode. To run AFGetTrace in the old console mode, use the /NoGUI (/NG) switch.
-
Open a command window and change directory to PIPC\AF.
-
Choose from the following actions:
To ...
Do this ...
Display syntax and parameters
At the command prompt, type:
afgettrace /?
Run AFGetTrace with default settings
At the command prompt, type:
afgettrace
Default output goes to standard output.
Run AFGetTrace with specific parameters
At the command prompt, type:
afgettrace /parameter
Refer to List of AF Get Trace utility parameters for details on the parameters you can use.
Terminate event tracing
In the command window, type:
X
Note: If you close the command window without terminating afgettrace, trace events continue to be generated, which can slow down your AF SDK applications.