Skip to main content

Command: Profiler – Profiler Watch List

Important

The implicitly added IEC code for a Profiler measurement method, as well as the breakpoints for POUs in the watch list, result in a change and slows down the evaluated program.

When a profiling or code coverage measurement is active, an online is generally not possible. Moreover, some online features are not available, such as "flow control" and "breakpoints". There are no restrictions for the watch list in this respect.

Enabling or disabling a Profiler measurement method, or changing any settings in the Profiler editor each requires a download. Then an online change is no longer possible. There are no restrictions for the watch list in this respect.

Profiler Watch List View

For each POU and each POU instance of an application in this watch list, CODESYS Profiler detects at runtime the frequency and duration that it is called.

You can fill the list with the required POUs and instances in offline mode or online mode:

  • By dragging a POU from the device tree or editor to the list

  • By specify an entry manually (supported by the Input Assistant)

  • By clicking Add to Profiler Watch List in the context menu of a POU in the Devices or POUs view

Table 11. Profiler Watch List

Call

Name of the POU whose calls are analyzed. Example: PLC_PRG. For input options, see above.

Instance

Name of the POU instance.

Application

Path of the application for which the analysis should be performed. Example: Device_XY.Application.

Count

Number of calls since the measurement was started. Example: 24.

Duration <unit>

Total duration of all calls in the current cycle. Example: 51 µs

Max. duration <unit>

Maximum duration of calls in a cycle since beginning the measurement. Example: 764 µs

Min. duration <unit>

Minimum duration of calls in a cycle since beginning the measurement. Example: 200 µs

Total time <unit>

Total duration of all calls since beginning the measurement. Example: 204 876 µs

Average time <unit>

Average duration of calls in a cycle since beginning the measurement. Example: 48 µs

Context menu in online mode or offline mode when the focus is in a table cell:

Reset

Resets the measured times of the selected lines to zero

Delete

Deletes the selected lines

Open POU

Opens the POU of the selected lines in the editor

Submenu 'Display Mode'

For setting the time data type or the unit directly for displaying the duration:

  • LTIME (example: LTIME#43ms13µs44ns)

  • TIME (example: T#201ms)

  • ms (example: 201)

  • µs (example: 1347)

  • ns (example: 597811)



For more information, see: Using the Profiler Watch List