| |||
| Home > Tracing Tutorial > Collecting trace on a running target > Capturing trace by disconnecting and connecting the analyzer | |||
To capture trace from a running target:
Click Toggle
Analyzer on the Analysis window toolbar to disconnect
from the analyzer.
Unload and reload the image:
Right-click on the Load Image+Symbols entry
in the Process Control view to display the context menu.
Select Unload from the context menu. The image is unloaded.
Right-click on the Load Image+Symbols entry
in the Process Control view to display the context menu.
Select Load from the context
menu. The image is reloaded and the PC is reset to the image entry
point (0x8000). The tracepoint is removed.
Click Run on
the Debug toolbar to start execution.
Click Toggle Analyzer on the Analysis window toolbar to connect to the analyzer. This action does not have an impact on the performance of the program.
You cannot use the ANALYZER,connect CLI command to connect to the analyzer when the target is running.
After
a short time, click Stop on the Debug toolbar
to stop execution. The captured trace is displayed in the Trace tab
of the Analysis window. Figure 10.65 shows an example.
The captured trace depends on the location that execution has reached when you connect the analyzer and the point where you stop execution.