OScript API/Built-in Package Index |
The Profiler package provides a small set of functions for enabling and controlling OScript profiler output.
OScript profilers collect timing information during OScript code execution and save this data to profiler output files. Profilers run on a per-thread basis, so profile data files represent the data collected from a single thread.
The profile data may be output in two formats. By default, output is written in Callgrind format, and can be open by a variety of utility programs, including KCachegrind. KCachegrind allows visualization and analysis of profiling data, and can view multiple profile data files at the same time.
Profile data may also be output in raw comma separated values format (CSV), by specifying a profile file name with a .csv extension.
For either of the above formats, the profiler also supports GZIP compression of the data file as it is written by specifying a .zip extension (e.g. profiledata.out.zip).
Profiler output will include calls to OScript functions and OScript builtins.
Profiler output will only include calls to OScript functions.
Profiler output is disabled.
Returns the current Profiler output level.
Sets the current Profiler output level.
Create a new OScript profiler.
Stops the current OScript profiler.
Profiler output will include calls to OScript functions and OScript builtins.
Profiler output will only include calls to OScript functions.
Profiler output is disabled.
Returns the current Profiler output level.
The current Profiler output level. Profiler.LEVEL_OFF if there is no active profiler.
Sets the current profiler output level.
The profiler output level to set.
True if successful, false if not.
Create a new OScript profiler for the calling thread.
The profiler output file name.
The profiler output level to set (default is Profiler.LEVEL_BUILTINS).
True if the profiler should stop after the current request completes, false if the profiler should run until stopped (default is false).
True if the profiler should report the fully-qualified object name for each profile entry (default is false / report non-qualified object names).
Boolean indicating success in creating the new profiler.
Stops the current OScript profiler for the calling thread.
True if the profiler should stop profiling only until the current request completes, false if the profiler should completely stop profiling (default is false).
True if an active profiler was stopped, false if there was no profiler running.
Copyright © 2023 OpenText Corporation. All rights reserved. |