| Development Environment | ![]() |
An Example Using the Profiler
This example demonstrates how to run the profiler.
The -detail builtin option instructs the profiler to gather statistics for built-in functions, in addition to the default M-functions, M-subfunctions, and MEX-functions.
The -history option instructs the profiler to track the exact sequence of entry and exit calls.
lotkademo to run a demonstration.[t,y] = ode23('lotka',[0 2],[20;20]);
lotkaprof.profile report lotkaprof
This suspends the profiler, displays the profile report in your system's default Web browser, and saves the results. See Viewing Profiler Results for more information.
The profiler 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 Profiler Results | ![]() |