Analog Devices EZ-KIT Getting Started page 41

Hp switch getting started
Table of Contents

Advertisement

Using ADSP-BF548 EZ-KIT Lite to Investigate Performance
Factors
and associated EZ-KIT Lite devices. Another library function (
)
clock()
provides the current value of the processor's core clock cycle counter
whenever the function is called.
Since we are examining performance in this example, we will build the
project in the Release configuration, which invokes the compiler's opti-
mizer. Ensure that the configuration drop-down list in the project toolbar
is set to Release rather than Debug, then rebuild the project.
Before running the example program, open a Statistical Profiler window
using the Tools–>Statistical Profiling–>New Profile menu selection.
Position and resize the window as necessary. While a program is running,
the Statistical Profiler repeatedly reads the processor's program counter
value, associates the values with locations in the program, and displays a
percentage of 'hits' for different parts of the program in the profiler win-
dow
(Figure
2-1). The Statistical Profiler is an excellent tool for finding
hotspots in a program's execution and assessing the performance effects of
program changes.
Figure 2-1. Statistical Profiler Window
Now run the program. While the program runs, the Statistical Profiler
window is updated periodically to show the percentage of runtime being
spent in each function. After 20 seconds or so, the program prints a mes-
sage to the Console tab of the VisualDSP++ Output window (in green
text) giving the approximate number of seconds the loop took to run and
Getting Started with ADSP-BF548 EZ-KIT Lite
2-5

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EZ-KIT and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Adsp-bf548 ez-kit lite

Table of Contents