User`s guide
profile
Purpose Code execution and stack usage profile report
Note The tic and raw profile report options that depend on DSP/BIOS
will be removed in a future release. Use
report for all profiling.
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
profile measurements from the generated code. Structure
ps contains
the information in either raw form or filtered and formatted into fields.
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 filing in th e confi guration parameters
and build your model.
2 Select whether to profile 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 profiling
reports.
If your project uses D SP/BIO S, the profiling system uses CLK and STS
objects to profile 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