Please enable JavaScript to view this site.

winIDEA Help

Version: 9.21.244

Navigation: Operating Systems > AUTOSAR > How-to guides > Profile Vector MICROSAR

Scroll Prev Top Next More

Running Task and ISR Profiling

In this topic:

Introduction

Configure ORTI Export in DaVinci Configurator

Configure winIDEA and start profiling

 

 

Introduction

Running task and ISR analysis works by data tracing the running task and ISR attribute for each AUTOSAR core.

 

The advantage of this approach is that it does not require instrumentation or special configuration via iTCHi.

 

The disadvantage is that profiling the running object can lead to ambiguous results in the interpretation of the data. For example, if the running task switches from one to another, the reason why the first task stops is unknown to the profiler. This is acceptable for CPU load analysis, but makes other use cases infeasible.

For use cases such as response time requirements verification and event-chain analysis, use a task state profiling approach.

 

number1

Generate an ORTI file.

 

number2

Add ORTI file to winIDEA.

 

number3

Configure winIDEA Analyzer.

 

 

Configure ORTI Export in DaVinci Configurator

For OS Task and ISR profiling, you need to enable ORTI file generation in your Vector MICROSAR project. Follow these steps:

 

number1

In DaVinci Configurator, open the Basic Editor.

 

number2

In the Basic Editor, expand the OS node.

 

number3

Navigate to the OsOS node and select the OsDebug node.

 

Number4

Activate ORTI Debug Support by selecting ORTI_23_STANDARD or ORTI_23_ADDITIONAL.

 

Number5

Regenerate the OS.

This process enables the OS ORTI file generation. After generating the OS, you should find a file Os_Trace.ORT in your Appl/GenData directory.

 

Click to enlarge

 

 

Configure winIDEA and start profiling

After generating the ORTI file, follow these steps to add it to winIDEA:

 

number1

Add the generated XML to winIDEA.

 

number2

Open the Analyzer and create a new trace configuration.

Make sure to add the application that references the ORTI file.

 

number3

Select the RUNNINGTASK and RUNNINGISR2 attributes via Profiler page.

running-task

 

Number4

Start a new trace recording.

If everything is set up correctly, you should see a trace like the one shown in the screenshot below.

Note that the tasks only have the two states RUNNING and TERMINATED. As mentioned before, this is not sufficient for many use cases where additional states such as WAITING and READY are required.

 

Click to enlarge

 

i-icon

If you don’t see any data or the data does not look plausible, please check the Knowledge Base.

Specifically, a manual trigger configuration may be necessary.

Copyright © 2024 TASKING Germany GmbH