Development Environment    

The profile Function

Here is a summary of the main forms of profile. For details about these and other options, type doc profile.

Syntax
Option
Description 
profile on

Starts the profiler, clearing previously recorded statistics.

-detail level
Specifies the level of function to be profiled.

-history
Specifies that the exact sequence of function calls is to be recorded.
profile off

Suspends the profiler.
profile report

Suspends the profiler, generates a profile report in HTML format, and displays the report in your system's default Web browser.

basename
Saves the report in the file basename in the current directory.
profile plot

Suspends the profiler and displays in a figure window a bar graph of the functions using the most execution time.
profile resume

Restarts the profiler without clearing previously recorded statistics.
profile clear

Clears the statistics recorded by the profiler.
s = profile('status')

Displays a structure containing the current profiler status.
stats = profile('info')

Suspends the profiler and displays a structure containing profiler results.


 Using the Profiler An Example Using the Profiler