| Programming and Data Types | ![]() |
An Example Using profile
This example demonstrates how to run profile:
-detail builtin option instructs profile to gather statistics for built-in functions, in addition to the default M-functions, M-subfunctions, and MEX-functions.
The -history option instructs profile to track the exact sequence of entry and exit calls.
lotkademo, which runs a demonstration.
lotkaprof.
profile, displays the profile report in your system's default Web browser, and saves the results. See Viewing profile Results for more information.
profile function 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.
| The profile Function | Viewing profile Results | ![]() |