Introduction to analyzing your application’s timeline
See also:
Briefly about analyzing the timeline
C-SPY can provide information for various aspects of your application, collected when the application is running. This can help you to analyze the application’s behavior.
You can view the timeline information in different representations:
As different graphs that correlate with the running application in relation to a shared time axis. The graphs appear either in the Timeline window or the Sampled graphs window, depending on the source of the data,
As detailed logs
As summaries of the logs.
imeline information can be provided for:
Call stack | Can be represented in the Timeline window, as a graph that displays the sequence of function calls and returns collected by the trace system. You get timing information between the function invocations. Note that there is also a related Call Stack window and a Function Trace window, see Call Stack window and , respectively. |
Data logging | Based on data logs collected by the trace system for up to four different variables or address ranges, specified by means of Data Log breakpoints. Choose to display the data logs:
|
Data sampling | Based on samples for up to four different variables. Choose to display the data logs:
Data sampling gives an indication of the data value over a length of time. Because it is a sampled value, data sampling is best suited for slow-changing data. |
Interrupt logging | Based on interrupt logs collected by the trace system. Choose to display the interrupt logs:
Interrupt logging can, for example, help you locate which interrupts you can fine-tune to make your application more efficient. For more information, see Interrupts. |
Requirements for timeline support
Depending on the capabilities of the hardware, the debug probe, and the C-SPY driver you are using, trace-based timeline information is supported for:
Target system | Call Stack | Data logging | Interrupt logging |
|---|---|---|---|
C-SPY simulator | Yes | Yes | Yes |
C-SPY hardware debugger drivers | — | — | Yes |
For more information about requirements related to trace data, see Requirements for using trace.