async2v.application.metric module¶
Reference¶
-
class
Fps
(component_id, current, target)¶ Bases:
object
Frames per second event payload
Metric emitted on the
FPS_EVENT
for all components of typeIteratingComponent
-
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 typeEventDrivenComponent
orIteratingComponent
-
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
-