TCF Profiling - 2021.2 English

Vitis Unified Software Platform Documentation: Embedded Software Development (UG1400)

Document ID
UG1400
ft:locale
English (United States)
Release Date
2021-12-15
Version
2021.2 English

TCF profiler supports profiling of both standalone and Linux applications. TCF profiling does not require any additional compiler flags to be set while building the application. Profiling standalone applications over JTAG is based on sampling the Program Counter through debug interface. It does not alter the program execution flow and is non-intrusive when stack trace is not enabled. When stack trace is enabled, program execution speed decreases as the debugger has to collect stack trace information.

  1. Select the application you want to profile.
  2. Right-click the application and select Run As > Launch on Hardware (Single Application Debug).
  3. When the application stops at main, open the TCF profiler view by selecting Window > Show View > Debug > TCF Profiler.
  4. Click the button to start profiling. The Profiler Configuration page appears.
  5. Select the Aggregate Per Function option, to group all the samples collected for different addresses in a single function together. When the option is disabled, the samples collected are shown as per the address.
  6. Select the Enable stack tracing option, to show the stack trace for each address in the sample data. To view the stack trace for an address, click on that address entry in the profiler view.
  7. Specify the Max stack frames count for the maximum number of frames that are shown in the stack trace view.
  8. Specify the View update interval for the time interval (in milliseconds) the TCF profiler view is updated with the new results. Note that this is different from the interval at which the profile samples are collected.
  9. Resume your application. The profiler view will be updated with the data, as shown in the following figure.