User`s guide

profile
Purpose Code execution and stack usage prole report
Note The tic and raw prole report options that depend on DSP/BIOS
will be removed in a future release. Use
report for all proling.
Syntax ps=profile(cc, execution ,'format',timeout)
ps=profile(cc,'
execution','format')
profile(cc,'
stack','action')
Description ps=profile(cc, execution ,'format',timeout) returns execution
prole measurements from the generated code. Structure
ps contains
the information in either raw form or ltered and formatted into elds.
To use
profile to assess how your program executes in real-time,
complete the following tasks w ith a Simulin k model:
1 Enable real-time e xecu ti on pro ling in th e conguration parameters
and build your model.
2 Select whether to prole by task or subsystem.
3 Build your model.
4 Download your program to the processor.
5 Run the program on the processor.
6 Stop the running program.
7 Use profile at the MATLAB command prompt to access the proling
reports.
If your project uses D SP/BIO S, the proling system uses CLK and STS
objects to prole your projec t. STS objects buffer statistics data accesses
by statistics functions in the operating system. The objects are a service
provided by the DSP/BIO S real-time kernel. For details about STS
7-101