Please enable JavaScript to view this site.

winIDEA Help

Version: 9.21.253

Navigation: Analyzer > How-to guides

Scroll Prev Top Next More

Perform CPU Load

In this topic:

Requirements

Configuration steps

Results

 

 

Introduction

An important metric in the analysis of embedded applications is the CPU idle time. The idle time is the amount of time the CPU is not busy. If the Operating System (OS) has an idle task the idle time is simply the amount of time the idle task is running.

CPU Load functionality displays the amount of time OS spent outside the idle task is running per-core and it visualizes the data in the Profiler Timeline window. CPU Load is calculated on top of an existing recording, similar to Profiler Inspectors.

 

 

Requirements

Configured OS

winIDEA 9.21.22 and newer

 

 

Configuration steps

number1

Open Profiler Timeline.

 

number2

Select CPU Load in the Profiler Timeline toolbar.

CPULoad-2

 

number3

Enable CPU Load.

 

 

Number4

(optional) Set the Period and close the dialog.

This configuration suffice for majority of use cases, since by default neutral tasks (displayed with green color) are considered the default ones.

 

CPULoad-3

 

 

Number5

(optional) Enable Manual and set the Period.

Too calculate CPU Load for multiple tasks as "idle", you can additionally select from which tasks CPU Load should be calculated.

In the example the period is set to 5 ms, this means that if inside this period "idle"  task was active for 1ms, then CPU Load would show 80% since the 4 ms (80%) OS was executing some other task than "idle".

 

CPULoad-4

 

 

Results

Results are displayed in the Profiler Timeline.

CPU Load is calculated per core (CPU0, CPU1) and the parent area (CPULoad) shows the average value of all cores.

 

Click to enlarge

 

 

Next steps

Profiler Export

 

 

More resources

Inspector Examples - CPU Utilization

Inspectors Templates - CPU Load

Understanding Linux process load compared to embedded RTOS CPU Utilization - Webinar

 

Copyright © 2024 TASKING