Please enable JavaScript to view this site.

winIDEA Help

Version: 9.21.241

Navigation: Analyzer > How-to guides

Scroll Prev Top Next More

Task/ISR Profiler Sampling

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 Profiler 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.

 

 

Configure Task/ISR Sampling

 

number1

Create a default iTCHi configuration file.

 

Warning_orange

iTCHi version iTCHi 8 Jun 2021 or newer is required.

 

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

2. 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 Profiler XML to Application / OS.

task-isr-sampling2

Refer to the AUTOSAR chapter for more information about the Configuration.

 

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.

Click to enlarge

Task and ISR sampling data for the selected OS objects.

 

 

Copyright © 2024 TASKING Germany GmbH