Overview

A code profiler is available for Content Server. This profiler collects run-time statistics for OScript code executing on the server it is running on. This functionality has been included in Content Server since release 16; however, as of release 24.1, CSIDE provides a simplified integration to enable the profiler, and to interpret the data generated by the profiler.

Enabling the profiler, results in the server inserting instrumentation code into OScript function calls. This allows information regarding stack depth and timing to be recorded, however the cost is significantly slower than normal execution. The profiler is an excellent tool for understanding the relative time impact and pattern of function calls, buy it does not provide any insight into the overall performance of the server call in real-time (unlike Content Server's timing logs).

Note that the profiler can consume significant memory when attempting to process very large sets of profiler data. Should Eclipse frequently alert you that it has run out of memory: feel free to increase Eclipse's heap size

Please review the following pages for more information on CSIDE's profiler integration:

Enabling the profiler - Learn about how to invoke the profiler functionality.

Interpreting the profiler data - Learn about the various views available for viewing the interpreted data.

Customizing the profiler - Learn about the options available on the profiler's preference page.