|Programming and Data Types|
An Example Using profile
This example demonstrates how to run
profile, type in the Command Window
-detail builtinoption instructs
profileto gather statistics for built-in functions, in addition to the default M-functions, M-subfunctions, and MEX-functions.
-history option instructs
profile to track the exact sequence of entry and exit calls.
lotkademo, which runs a demonstration.
profile, displays the profile report in your system's default Web browser, and saves the results. See Viewing profile Results for more information.
profile, without clearing the existing statistics.
profilefunction is now ready to continue gathering statistics for any more M-files you run. It will add these new statistics to those generated in the previous steps.
profilewhen you finish gathering statistics.
|The profile Function||Viewing profile Results|