
An Overview of the Profiling Process
10-2
10.1 An Overview of the Profiling Process
Profiling consists of five simple steps:
Enter the profiling environment.
See
Entering the Profiling Envi-
ronment, page 10-3.
Identify the areas of code where
you’d like to collect statistics.
See
Defining Areas for Profiling,
page 10-5.
Identify the profiling session
stopping points.
See
Defining a Stopping Point,
page 10-13.
Step 2
Step 3
Step 1
Begin profiling.
See
Running a Profiling Ses-
sion, page 10-15.
Step 4
View the profile data.
See
Viewing Profile Data, page
10-17.
Step 5
Note:
When you compile a program that will be profiled, you must use the –g and
the –as options. The –g option includes symbolic debugging information; the
–as option ensures that you will be able to include ranges as profile areas.
A profiling strategy
The profiling environment provides a method for collecting execution statistics
about specific areas in your code. This gives you immediate feedback on your
application’s performance. Here’s a suggestion for a basic approach to opti-
mizing the performance of your program.
1) Mark all the functions in your program as profile areas.
2) Run a profiling session; find the busiest functions.
3) Unmark all the functions.
4) Mark the individual lines in the busy functions and run another profiling
session.
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...