|Desktop Tools and Development Environment|
Profile Detail Report
The Profile Detail report shows profiling results for a selected function that was called during profiling. A Profile Detail report is made up of seven sections, summarized below. By default, the Profile Detail report includes all seven sections, although, depending on the function, not every section contains data. You can customize the display to include only sections you are interested in--see Controlling the Contents of the Detail Report Display. The following sections provide more detail about each section:
To return to the Profile Summary report from the Profile Detail report, click the Home button in the toolbar.
Controlling the Contents of the Detail Report Display
You can determine which sections are included in the display by selecting them and then clicking the Refresh button. The following sections provide more detail about each section of this report.
Profile Detail Report Header
The detail report header includes the name of the function that was profiled, the number of times it was called in the parent function, and the amount of time it used.
The header includes a link that opens the function in your default text editor.
The header also includes a link that copies the report to a separate window. Creating a copy of the report can be helpful when you make changes to the file, run the Profiler for the updated file, and compare the Profile Detail reports for the two runs. Do not make changes to M-files provided with MathWorks products, that is, files in
To include the Parents section in the detail report, select the Show parent files check box. This section of the report provides information about the parent functions, with links to their detail reports.
To include information about the lines of code that used the most amount of processing time in the detail report, select the Show busy lines check box. Click a line number to view that line of code in the source listing.
To include the Children section of the detail report, select the Show child files check box. This section of the report lists all the functions called by the profiled function. If the called function is an M-file, you can view the source code for the function by clicking on its name.
To include the M-Lint results section in the detail report display, select the Show M-Lint results check box. This section of the report provides information generated by M-Lint about the function.
To include the Coverage results section in the detail report display, select the Show file coverage check box. This section of the report provides statistical information about the number of lines in the code that executed during the profile run.
To include the File listing section in the detail report display, select the Show file listing check box. If the file is an M-file, the Profile Detail report includes a column listing the execution time for a particular line, a column listing the number of times the line was called, and the source code for the function.
In the file listing, comment lines appear in green, lines of code that executed appear in black, and lines of code that did not execute appear in gray. If you click a function name in the listing, you can view its detail report.
By default, the Profile Detail report uses color to highlight the lines of code with the longest execution time. The darker the shade of color, the longer the line of code took to execute. Using the menu in this section of the detail report you can change this default and choose to highlight other lines of code in the listing, such as the lines called the most, lines called out by M-Lint, or lines of code that were (or were not) executed. Using this menu, you can also turn off highlighting completely.
|Profile Summary Report||The profile Function|
© 1994-2005 The MathWorks, Inc.