Similar to Network Watcher, Time Watcher measures the time of execution for a specified part of a script and alerts if the threshold has been exceeded.
To enable Time Watcher:
- Right-click the line (step), after which Time Watcher should start measures.
- Select Measure Time > Script > Start.
- Optional 1: Specify the watcher parameters on the editing pane, located to the left of the script code area.
- Optional 2: To collect, process and aggregate Script Time Watcher results as a custom metric, ensure that you enable the Custom Metric option in the Time Watcher settings.
- Right-click the line, after which the measurement must be stopped. Select Measure Time > Script > Stop, and choose the name of the watcher to close.