Equinox Online Help - Language Reference - A to Z

Home

ProfileReset

Applies to
SyntaxProfileReset [Flags]
Action[Statement] Resets the profiling system
ScopeUsable anywhere
Notes

The trace history is cleared and any extra resources used by the profiler's previous run are freed. The log file is renamed using the time stamp of the last log update, or deleted.

If the optional Flags parameter is supplied as zero, the profiler is disabled. If the parameter is not supplied or is less than zero, the profiler is re-initialised using the ProfileApplication ini key setting.

Otherwise Flags may be a combination of the following values:

  • +1 Profiling enabled
  • +2 Turn trace on (otherwise initially off)
  • +4 Include full trace history in the log
  • +8 Include details for all events in the log (otherwise only include details where requested via ProfileEvent)
  • +16 Add client-server requests to the trace history
  • +32 Delete any existing log file (otherwise it is renamed including a timestamp)

The system workarea SysError is set to a non-zero value if an error occurs, otherwise zero.

CategoryProfiling
See Also ProfileEvent, ProfileEventStart, ProfileEventStop, ProfileMessage, ProfileLog, ProfilePause, ProfileResume, ProfileStatus
Example

This example disables the profiler

ProfileReset 0

This example restore the ini file settings

ProfileReset -1