TASKING VX-toolset for TriCore User Guide
the existing amon.prf
from being overwritten by the new amon.prf
. At any time, you can reload these profiling results in the profiler.You can even load multiple
.prf
files into the Profiler to view the combined results.
First, open the TASKING Profiler perspective if it is not open anymore:
1.
In the Profiler view, click on the (Select Profiling File(s)) button.
The Select Profiling File(s) dialog appears.
2.
In the Projects box, select the project for which you want to see profiling information.
3.
In the Profiling Type group box, select Dynamic Profiling.
4.
In the Profiling Files group box, disable the option Use default.
5.
Click the Add... button, select the
.prf
files you want to load and click Open to confirm your choice.
6.
Make sure the correct symbol file is selected, in this example profiling.elf
.
7.
Click OK to finish.
6.3. Profiling at Compile Time (Static Profiling)
Just as with dynamic profiling, static profiling can be used to determine which parts of a program take most of the execution time. It can provide a good alternative if you do not want that your code is affected by extra code.
Overview of steps to perform
To obtain a profile using code instrumentation, perform the following steps:
1. Compile and link your program with static profiling enabled
2. Display the profile
First you need a completed project. If you are not using your own project, use the profiling
example as described in
Section 6.2, Profiling using Code Instrumentation (Dynamic Profiling)
.
6.3.1. Step 1: Build your Application with Static Profiling
The first step is to tell the C compiler to make an estimation of the profiling information of your application.
This is done with C compiler options:
1.
From the Project menu, select Properties
The Properties for profiling dialog box appears.
2.
In the left pane, expand C/C++ Build and select Settings.
In the right pane the Settings appear.
212