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.
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. |
Create a default iTCHi configuration file. |
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"
}
Make sure to set the Analyzer Operation mode to None via Hardware / CPU Options / Analyzer. |
Run iTCHI with the --running_taskisr_sampling flag. |
Add the generated Profiler XML to Application / OS. |
Refer to the AUTOSAR chapter for more information about the Configuration.
Select the Running Task (Sampling) in Profiler OS objects. |
Select OS objects - Running Task/ISR objects with (Sampling) at the end.
|
Begin a New Analyzer Session. |