User`s guide
profile
instrumentation in the project. You enable the DSP/BIOS report
capability with the Profile performance at atomic subsystem
boundaries option on the
Target Support Package C6 pane o n the
Real-Time Workshop pane of the Simulink Configuration Parameters
dialog box.
ps=profile(cc,'execution','format') defaults to the timeout period
specified in the
ticcs object cc.
profile(cc,'stack','action') returns the CPU s tack usage from
your application.
action defines the stack use profile operation and
accepts one of the strings in the following table.
action String Descriptio n
setup
Initializes the CPU stack with known
patterns. Writes 0xA5 to the stack
addresses on C6000 processors
and 0xA5A5 on C2000 and C5000
processors.
report
Returns the report of the stack usage
from running your application.
The MATLAB output from profiling the system stack has the elem ents
described in the following table.
Report Entry
Units Descrip tion
System Stack
Minimum Addressable
Unit (MAU)
Maximum number of
MAUs used and the
total MAUs allocated
for the stack.
name
String for the stack
name
Lists the name
assigned to the s tack.
startAddress
Decimal address and
page
Lists the address of
the stack start and the
memory page.
7-107