Please enable JavaScript to view this site.

winIDEA Help

Version: 9.21.246

Navigation: Analyzer > How-to guides

Scroll Prev Top Next More

Task/ISR Profiler Sampling

In this topic:

Configuration steps

Results

 

 

Introduction

Profiler Sampling can help you get an approximation of your Task and ISR load based on sampling (periodically reading) the Running Task and ISR variables if OS and RTE profiling is not feasible because hardware tracing is not available.

Following these steps you can get OS metrics without instrumentation and use iTCHi to create a winIDEA OS Info XML.

 

Warning_orange

Running Task and ISR Sampling does not guarantee exact metrics like hardware tracing. Instead, you get an approximation that becomes more accurate the longer you sample but might have systematic errors, for example, when an ISR executes for very short durations.

 

 

Configuration steps

 

number1

Create a default iTCHi configuration file.

 

Warning_orange

iTCHi version iTCHi 8 Jun 2021 or newer is required.

 

a.Generate an empty one itchi.json with the --write_default_config  flag. Refer to iTCHi Basic Configuration for more information.

b.Your itchi.json file should now look as shown on the following listing:

 

{
   "orti_file": "path/to/Os_Trace.ORT",
   "profiler_xml_file": "profiler.xml"
}

 

number2

Make sure to set the Analyzer Operation mode to None via Hardware  / CPU Options / Analyzer.

 

number3

Run iTCHI with the --running_taskisr_sampling flag.

 

Number4

Add the generated XML to Debug / Configure Session / Applications / Edit.

 

Number5

Select the Running Task (Sampling) in Profiler OS objects.

Select OS objects - Running Task/ISR objects with (Sampling) at the end.

 

task-isr-sampling4

 

number6

Begin a New Analyzer Session.

Task and ISR sampling data for the selected OS objects.

 

 

Results

Click to enlarge

 

Copyright © 2024 TASKING Germany GmbH