Power Log window
What do you want to do?
Learn about:
Learn how to:
Get related information:
Get reference information about the Power Log window, see below the line.

The Power Logwindow is available from the C-SPY driver menu during a debug session.

This window displays collected power values.
A row with only Time/Cycles displayed in pink denotes a logged power value for a channel that was active during the actual collection of data but currently is disabled in the Power Log Setup window.
Note
There is a limit on the number of saved logs. When this limit is exceeded, the oldest entries in the buffer are erased.
Requirements
A debug probe with support for power debugging and one of these alternatives:
The C-SPY I-jet driver
The C-SPY J-Link/J-Trace driver
The C-SPY ST-LINK driver
The C-SPY TI MSP-FET driver
The C-SPY TI XDS driver
Display area
This area contains these columns:
- Time
The time from the application reset until the event, based on the clock frequency specified in the SWO Configuration dialog box.
If the time is displayed in italics, the target system could not collect a correct time, but instead had to approximate it.
This column is available when you have selected Show Time from the context menu.
- Cycles
The number of cycles from the application reset until the event. This information is cleared at reset.
If a cycle is displayed in italics, the target system could not collect a correct time, but instead had to approximate it.
This column is available when you have selected Show Cycles from the context menu.
- Program Counter
Displays one of these:
An address, which is the content of the
PC, that is, the address of an instruction close to where the power value was collected.‑‑-, the target system failed to provide the debugger with any information.
Overflow in red, the communication channel failed to transmit all data from the target system.
Idle, the power value is logged during idle mode.
Note that the Program Counter column is only available if your C-SPY debugger driver and device support it.
- Name [ unit ]
The power measurement value expressed in the unit you specified in the Power Log Setup window.
Context menu
This context menu is available:

These commands are available:
- Enable
Enables the logging system, which means that power values are saved internally within the IDE. The values are displayed in the Power Log window and in the Power graph in the Timeline window (if enabled). The system will log information also when the window is closed.
- Clear
Deletes the log information. Note that this will also happen when you reset the debugger, or if you change the execution frequency in the SWO Configuration dialog box.
- Save to File
Displays a standard file selection dialog box where you can select the destination file for the log information. The entries in the log file are separated by
TABandLFcharacters. An X in the Approx column indicates that the timestamp is an approximation.
- Choose Live Log File
Displays a standard file selection dialog box where you can choose a destination file for the logged power values. The power values are continuously saved to that file during execution. The content of the live log file is never automatically cleared, the logged values are simply added at the end of the file.
- Enable Live Logging to
Toggles live logging on or off. The logs are saved in the specified file.
- Clear log file
Clears the content of the live log file.
- Show Time
Displays the Time column. If the Time column is displayed by default in the C-SPY driver you are using, this menu command is not available.
- Show Cycles
Displays the Cycles column. If the Cycles column is not supported in the C-SPY driver you are using, this menu command is not available.
- Open Setup Window
Opens the Power Log Setup window.
The format of the log file
The entries in the log file are separated by TAB and line feed. The logged power values are displayed in these columns:
- Time/Cycles
The time from the application reset until the power value was logged.
- Approx
An x in the column indicates that the power value has an approximative value for time/cycle.
- PC
The value of the program counter close to the point where the power value was logged.
- Name [ unit ]
The corresponding value from the Power Log window, where Name and unit are according to your settings in the Power Log Setup window.