MotoHawk CPU Performance Metrics

This block extracts CPU execution performance metrics of the sub-system overheads. Typically this encompasses the interrupt service routines (ISRs). Specific task execution is handled separately on a per task basis and CPU Idle is exposed via the Get OS Info block.

Only some targets allow the ISR execution performance to be monitored. When supported this execution is often broken down into different silicon sub-systems. This block allows the execution performance of these interrupt sub-systems to be recovered by a model when such metrics exist. The block communicates through the mask on what metrics are available for a particular target.

Block ID

CPU Performance Metrics

Library

motohawk_tasking_lib

Description

Signals

Each selected performance metric will report the observed execution performance of the last monitoring period as a percentage. The monitoring period is in the order of a 100 milliseconds, but the specific time is dependent upon the target in use. Time spent executing a sub-system is accumulated over the monitoring period and then cached as a percentage before beginning the next monitoring period. When Use Floating Point is checked the signals will export the percentage as real32 value. A fixed point representation will be used if Use Floating Point is not checked. In this case 100% is represented by the maximum value of a uint16, which is 65535.

Outputs that have been tagged as (Unsupported) by the target will report zero.

Block Parameters

Parameter Field Values Comments/Description
Name String Unique C-legal name (no special characters like spaces or commas) for this CPU performance metric instance.
Resource Drop Down The list of resources that support CPU performance metrics for the selected target
Use Floating point Check box The block will export the performance metrics as real32 (single) values when checked and as a fixed point values where 65535 represents 100% when not checked. Internally the data is accumulated using integer math. Floating point math will only execute when the query occurs.
Hide Unsupported Check box The block will hide all unsupported metrics when checked. Metrics that are checked will continue to be supported. This check box makes it easy for the user to identify what metrics are applicable to the selected resource.
Ignore Unsupported Check box The block will disable all unsupported metrics when checked. Disabled metrics are not exported.
Decrementor ISRs Check box Interrupt execution associated with the PowerPC decrementor exception are bundled into this metric. Often a module that uses the PowerPC core does not actively use the decrementor exception. The module may report that it is supported because it is available within the silicon, but internally it is not often used and thus will report zero for execution consumption.
TPU ISRs Check box Interrupt execution associated with micro-controller eTPU (Enhanced Timer Processor Unit) or TPU (Timer Processor Unit) silicon are bundled into this metric.
CAN ISRs Check box Interrupt execution associated with micro-controller CAN silicon are bundled into this metric.
DMA ISRs Check box Interrupt execution associated with micro-controller DMA (Direct Memory Access) silicon are bundled into this metric.
MIOS ISRs Check box Interrupt execution associated with micro-controller MIOS or eMIOS silicon are bundled into this metric.
Serial ISRs Check box Interrupt execution associated with micro-controller serial communication interface (SCI) silicon are bundled into this metric.
SPI ISRs Check box Interrupt execution associated with micro-controller DSPI or SPI silicon are bundled into this metric.
ADC ISRs Check box Interrupt execution associated with micro-controller ADC, QADC or eQADC silicon are bundled into this metric.
Ethernet ISRs Check box Interrupt execution associated with micro-controller Ethernet silicon are bundled into this metric.
Decimation/Reaction ISRs Check box Interrupt execution associated with micro-controller Decimation and/or Reaction module silicon are bundled into this metric.
All ISRs Check box The sum of all interrupt execution. Some targets may only support this option. Others may support this in addition to the specific sub-systems.
LIN ISRs Check box Interrupt execution associated with micro-controller LIN silicon are bundled into this metric.
Flexray ISRs Check box Interrupt execution associated with micro-controller Flexray silicon are bundled into this metric.
Other ISRs Check box Interrupt execution associated with micro-controller resources that have not been associated with a specific metric are bundled into this metric.
Software ISRs Check box Interrupt execution associated with internal software ISRs (typically used in multicore) are bundled into this metric.
Timer ISRs Check box Interrupt execution associated with micro-controller timer silicon are bundled into this metric.