![Texas Instruments TMS320C6 Series Скачать руководство пользователя страница 25](http://html.mh-extra.com/html/texas-instruments/tms320c6-series/tms320c6-series_user-manual_1094537025.webp)
Description of the Profiling Environment
1-5
Overview of a Code Development and Debugging System
1.2
Description of the Profiling Environment
In addition to the basic debugging environment, a second environment—the
profiling environment— is available. 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.
Figure 1–2 identifies several features of the debugger display within the profil-
ing environment.
Figure 1–2. The Profiling-Environment Display
Pulldown menu
provides access
to often-used
basic debugger
commands
plus
special profiling
commands
FILE: sample.c
0068
long int longi = 0
0069
register long reglong = 0x1234;
0070
register short regshort = 0x1234;
0071
0072
Re> for (i = 0; i < 0x70; i++);
0073
{
0074
call(i);
0075
if (i & 1) j += i;
0076
aai[k][k] = j;
0077
<<
if (!(i & 0xFFFF)) k++
0078
}
0079
0080
printf(”Final Result = %d\n”,j);
Load
mAp
Mark
Enable
Disable
Unmark
View
Stop–points
Profile
DISASSEMBLY
00007cdc 00000000
NOP
00007ce0 07d5142a Le> c_int00
MVK,S2
0xffffaa28,B15
00007ce4 0780606a
MVKH,S2 0xc00000,B15
00007ce8 0007fe2a
MVK,S2
0x0ffc,B0
00007cec 0000006a
MVKH,S2 0x0000,B0
00007cf0 07bc01e2
ADD,S2
B0,B15,B15
00007cf4 07bf07a2
AND,S2
0xfffffff8,B15,B15
00007cf8 0700002a Ld>
MVK,S2
0x0000,B15
00007cfc 0700606a
MVKH,S2 0xc00000,B14
00007d00 013fe428
MVK,S1
0x7fc8,A2
COMMAND
>>>
206 symbols loaded
Done
file sample.c
PROFILE
Area Name
Count Inclusive
Incl–Max
CL
<sample>#55
2
12
6
CF
xcall()
1
23
23
AR
main()–00006944
1
6
6
CR
<sample>#72–77
1
102
102
AL
c_int00
1
7
7
AL
00007cf8
Disabled
PROFILE window
displays execution
statistics
Profiling areas
are clearly
marked
Profiling areas
are clearly
marked
Key features of the profiling environment
The profiling environment builds on the same, easy-to-use interface available
in the basic debugging environment and has these additional features:
-
More efficient code. Within the profiling environment, you can quickly
identify busy sections in your programs. This helps you to direct valuable
development time toward optimizing the sections of code that most dra-
matically affect program performance.
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...