The Cicode Profiler
- Last UpdatedJul 18, 2023
- 1 minute read
The Cicode Profiler lets you gather information on how Cicode is performing in your project. This information includes the name of the function, the number of times the function was called (including from inside other functions), and the percentage of time the function took up during the profile period.
A high time and percentage value may indicate the Cicode function (and Cicode functions that may also call it) need to be reviewed and optimized.
Note: Contact Technical Support for assistance with optimizing your Cicode functions and those functions belonging to system include projects.
The information is presented in the following:
-
A new kernel table, 'Page Table Profile'.
-
A CSV file. If in single process mode the file will be called "CicodeProfile.csv". For multi-process mode, the file name will contain the cluster and server name for server processes, for example, "CicodeProfile.Cluster1.TrendServer1.csv".
This file is created when the Profiler is disabled at the end of a profiling session (either through one of the methods for disabling or by shutting down Plant SCADA). This file can be found in the Log directory for the Plant SCADA installation.
To activate the Cicode Profiler, you can do one of the following:
-
Use the 'Profile' Kernel command).
-
Define type 4 when using Cicode function CodeSetMode.
-
Set the INI parameter [Code]ProfilerEnabled. Refer to the Parameters help for more information.