Please enable JavaScript to view this site.

winIDEA Help

Version: 9.21.36

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.

 

Warning40x40

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.

 

Warning40x40

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.

task-isr-sampling
1. Open Hardware menu / CPU Options / Analyzer.

2. Select Operation mode None.

 

Refer to Analyzer Configuration for more information.

 

 

number3

Run iTCHI with the --running_taskisr_sampling flag.

Use --running_taskisr_sampling flag.

 

 

Number4

Add the generated Profiler XML to Application / OS.

task-isr-sampling2
1. Open Debug menu / Configure Session / Application / OS.

2. Open the Edit options dialog.

3. Add the xml to the RTOS description file location field.

 

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

 

 

Number5

Select the Running Task (Sampling) in Profiler OS objects

task-isr-sampling4
1. Open your Analyzer Configuration.

2. Go to the Profiler page.

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

 

 

number6

Begin a New Analyzer Session.

Click to enlarge
Task and ISR sampling data for the selected OS objects.

 

 

Copyright© iSYSTEM AG Carl-Zeiss-Str.1 85247 Schwabhausen Germany