Definition: | profile(integer i) |
Description: | Enable or disable profiling at run-time. This works for both execution-count and time-profiling . If i is 1 then profiling will be enabled, and samples/counts will be recorded. If i is 0 then profiling will be disabled and samples/counts will not be recorded. |
Comments: | After a
with profile
or
with profile_time
statement,
profiling is turned on automatically. Use profile(0) to
turn it off. Use profile(1) to turn it back on when
execution reaches the code that you wish to focus the
profile on.
Profiling does not apply to inline assembly (#ilASM{}), only hll code. The comments in the technicalia drop-down on the trace documentation apply equally to profiling. |
Example 1: |
profile(0) ... procedure slow_routine() profile(1) ... profile(0) end procedure |
See Also: | trace, profiling, special top-level statements |