Monitoring the Linux Instrumented System
After the build completes, copy the contents of the sd_card directory onto an SD card, and boot Linux on the board. Connect the board to your computer (both UART and JTAG cables). Set up the Linux TCF agent target connection with the IP address of the board. Click the Debug button to launch the application on the target. Switch to the Debug perspective. After launching the ELF, the program halts in main.
Create a new Run Configuration by selecting and double-clicking on Xilinx C/C++ application (System Debugger). Ensure that the Debug Type is set to Attach to running target, then click Run to close the Run Configurations window. Click Yes in the Conflict dialog box that says "Existing launch configuration 'System Debugger on Local <your project>.elf' conflicts with the newly launched configuration...".
Switch to the Performance Analysis perspective by clicking on
Select Performance Analysis in the Open Perspective dialog and click OK.
Next, click on the Start Analysis button, which opens the Performance Analysis Input dialog.
Check the box to Enable APM Counters. Click the Edit button to set up APM Hardware Information.
Click the Load button in the APM Hardware Information dialog. Navigate to workspace_path/project/SDDebug/_sds/p0/ipi/zc702.sdk and select the zc702.hdf file (zc702 is the platform name used in this example - use your platform instead). Click Open, then click OK in the APM Hardware Information dialog. Finally, click OK in the Performance Analysis Input dialog.
The Analysis views open in the PL Performance tab. Click the Resume button to run the application.
After your program completes execution, click the Stop Analysis button. If prompted by the Confirm Perspective Switch dialog to stay in the Performance Analysis perspective, click No.
Scroll through the analysis plots in the lower portion of the perspective to view different performance statistics. Click in any plot area to show a bigger version in the middle of the perspective. The orange box below allows you to focus on a particular time slice of data.