module timelinelib.monitoring

Contains the Monitoring class.

The monitoring functions comes into action if the flag DEBUG_ENABLED, in the timelinelib module, is set to True. This happens if the application argument –debug is used at start of Timeline. When DEBUG_ENABLED is True, timer and counting statistics are shown in the main panel.

Tests are found here.

class timelinelib.monitoring.Monitoring[source]

Bases: object

  • Kepp track of the number of times the timeline has been redrawn.

  • Measure the time it takes to redraw.

__init__(timer=None)[source]

Initialize self. See help(type(self)) for accurate signature.

property timeline_redraw_count

Return the number of times the timeline has been redrawn.

property category_redraw_count

Return the number of times the category tree has been redrawn.

property timer_elapsed_ms

Return the elapsed time in milliseconds.

count_timeline_redraw()[source]

Increment counter.

count_category_redraw()[source]

Increment counter.

timer_start()[source]

Start time measurement.

timer_end()[source]

Stop time measurement.