async2v.application.metric module

Summary

Classes:

Duration Processing duration event payload
Fps Frames per second event payload

Reference

class Fps(component_id, current, target)

Bases: object

Frames per second event payload

Metric emitted on the FPS_EVENT for all components of type IteratingComponent

component_id = None
Type:str

component id of emitting component

current = None
Type:float

Current number of frames per second

target = None

” :type: int

Target frames per second configured in component

class Duration(component_id, duration_seconds)

Bases: object

Processing duration event payload

Metric emitted on the DURATION_EVENT for all components of type EventDrivenComponent or IteratingComponent

component_id = None
Type:str

component id of emitting component

duration_seconds = None

Average duration of one processing step (the time the process() method runs) in seconds