Installation guide

Profiling fo r Improving Performance
profile Function Syntax Summary
Here is a summary of some of the main forms of profile.Fordetailsabout
these and other options, type
doc profile. Some p eo ple use profile simply
to see the child functions; see also
depfun for that p urpose.
Syntax Description
profile on
Starts profile,clearingpreviouslyrecorded
statistics.
profile on -detail level
Specifies the level of function to be profiled,
where
level can be either:
'mmex' M-functions, M-subfunctions, and
MEX-functions
'builtin' M-functions,
M-subfunctions, MEX-functions, and
built-ins
profile on -history
Specifies that the exact sequence of function
calls is to be recorded.
profile off
Suspends profile.
profile resume
Restarts profile without clearing
previously recorded statistics.
profile clear
Clears the statistics recorded by profile.
profile viewer
Opens the Profile r, a graphical user interface
and displays the informa t ion gathe red as an
HTML-formatted report.
Note: If you run the obsoleted syntax
profile report,theprofile function calls
this syntax.
s = profile('status')
Displays a structure containing the current
profile status.
stats = profile('info')
Suspends profile and displays a structure
containing
profile results.
Example: Using the profile Function
This example demonstrates how to run profile:
7-43