PMU
In this topic:
The Performance Monitor Unit (PMU) core plugin displays available performance monitors. These enable you to gather various statistics on the operation of the core and its memory system during runtime; and provide useful information about behavior of the processor that you can use when debugging or profiling code.
The PMU provides a cycle counter and event counters. Each event counter can typically count any of the events in the core. The available events include the architecturally required events (e.g. instructions, data cache hit rate, etc.), some of the common events (counting types of instruction e.g. branch and load/store), and events for counting different types of errors.
Cortex-R PMU supports the following cores: R4, R5, R7, R52.
The plugin can be loaded by selecting View | [<device>.COREn] Cortex-R | PMU. Information is displayed when a debug connection is established.
Button |
Description |
---|---|
Enable automatic update which is indicated by a [Rt] in the plugin title, e.g. CORE0.Cortex-R/PMU [Rt] |
|
Manual refresh |
|
Reset Counters |
|
Go to winIDEA Help |
Status row displays the current read status.
Columns display counter values, selected events, configured ratio and ratio values.
To display or hide columns, right-click on a column header and select what you want to see. |
Right-click in the plugin window to open the context menu.
Copy Python access snippet - Copy SDK code snippet to extract the content from the plugin window.
Auto Fit - Arrange all the columns to fit in the plugin window.
Options - Set colors and fonts.
Help - Open winIDEA Help.
In the Options dialog you can configure Event Counters and Cycle Counter.
Enabled - Enable the PMU unit.
Event Counter check box - Enable and configure selected Event Counter.
Cycle counter
Clock divider - Check to enable the Cycle divider.
Long cycle counter - Check to enable the Long cycle counter
Event Counter dialog
Do not count - Not counting in selected CPU modes.
•Event Counter n (ECn) and Cycle Counter (CC)
•Event Counter n (ECn) and Event Counter n (ECn)