To illustrate the way the profiler works, the HDevelop program
solution_guide/basics/color_simple.hdev is loaded and executed (see
figure 6.54).
The profiling data is displayed in a separate column (2) of the program window.
The display area can be resized by dragging its left edge (4).
Figure 6.54: Profiling results of the first program execution.
By default, the total execution time of each program line is displayed.
The gray bars illustrate the execution times in relation to the largest
value (3).
If the profiler is enabled, the tool bar of the program window contains some
additional profiler-related buttons (1).
The options described below are available in the drop-down menu of the toolbar
icon
or the context menu of the profiler area.
Activate/Deactivate Display / Activate Only selected
See section “Selective Profiler Display” on page 352.
Number of Calls
Displays how many times each program line has been executed in total.
This value is accumulative until the profiler is reset.
Total Execution Time
Displays the total processing time of each program line.
This value is accumulative until the profiler is reset.
Average Execution Time
Displays the average processing time of each program line.
This value differs from the total processing time if the corresponding
program line has been executed more than once, e.g., in a loop.
The average processing time is more meaningful if the program is reset and
run multiple times.
Minimum Execution Time
Displays the minimum processing time of each program line.
This value is only meaningful if the corresponding program line has been
executed more than once, e.g., in a loop.
Maximum Execution Time
Displays the maximum processing time of each program line.
This value is only meaningful if the corresponding program line has been
executed more than once, e.g., in a loop.
Last Execution Time
Displays the processing time of the last execution of each program line.
Note that the processing time is displayed in one of two modes as explained in
section “Profiler”, depending on the setting in the context
menu:
Execution Time
Display processing times as “execution time”, i.e., the raw time of an
operator call the additional overhead inside HDevelop.
Operator Time
Display processing times as “operator time”.
The display can be toggled between duration values and percentages:
Time
Display the processing times as absolute values.
The unit of measure defaults to ms and is adjusted appropriately, e.g., it
switches to seconds once the value exceeds 1000ms.
To specify the unit of measure explicitly, switch to the runtime statistics
window described in section “Runtime Statistics”.
Percentage
Display the processing times as percentages.
100% refers to the accumulated times inside main, or the currently
displayed procedure, respectively.