Please enable JavaScript to view this site.

winIDEA Help

Version: 9.21.242

Navigation: Analyzer > How-to guides

Scroll Prev Top Next More

Call Stack Profiling

In this topic:

Configuration steps

Results

Call Site examples

 

 

Introduction

Call Stack analysis is displayed in the Profiler Timeline and Profiler Statistics windows and it shows from where the function was called and which functions were called from this function. It is selected from Analyzer Configuration / Profiler page.

Applies to all Operation modes expect Flat, because this operation mode does not record call stack.

 

 

Configuration steps

number1

Open Analyzer Configuration / Profiler page.

Image:

With text

Padding: 0

Display size: 99.9, % of page width, maximum is physical size.

MAKE SURE images are more or less the same sizes, use Image Editor tool, adjust other images to the biggest dialog

 

number2

Make sure correct Operation mode is selected.

 

number3

Select Call stack analysis..

CallStackAnalysis

 

 

Number4

Click Reanalyze button in the Analyzer toolbar.

 

 

Results

Results are displayed in the Profiler Timeline and Profiler Statistics windows.

 

Call Stack analysis in the Profiler Timeline window displays:

(Gross) Time of Sub-Functions

Dependencies/Sequences within Operations

 

PDU - Protocol Data Unit

 

callstackprofiling_zoom39

 

 

Call Stack analysis in the Profiler Statistics window displays:

which Sub-Function contributes how much time within a certain operation, e.g. sending data (SensorData) via Ethernet using an RTE Write Port)

the maximum Function Call Tree Depth Useful for allocating sufficient Program Stack for each OS Task.

the sequence of Function calls within a certain Operation.

 

callstackprofiling-1_zoom30

 

 

Export results

Note that only call stack areas that are children of normal function area are exported.

CallStackAnalysis2

 

 

 

 

Call Site examples

1. Specified call sites in the Symbol Browser window.

CallSiteAnalyzerExample

 

2. Function g calls function h and only function g is configured for profiling:

CallSiteAnalyzerExample1

 

3. Function g calls function h and both are configured for profiling:

CallSiteAnalyzerExample2

Copyright © 2024 TASKING Germany GmbH