Details
Description
It should be possible to trace the duration between two events, if the events come 'close' after each other.
Use case:
Trace the duration from bridge import to first preview/run.
Idea:
If the two events follow after each in other in less than e.g. 3 minutes, we create a new
tracing event that logs the duration and count.
The implementation can be generlized for any event, so we can utilize it for other use cases later.
The API from QDS side will look similar to this:
addDurationTracingEvent(idForNewDurationEvent, idForStartEvent, idForEndEvent, maxDuration);
If idForNewDurationEventfollow after idForEndEvent in less then maxDuration, then idForNewEvent is created containing the exact duration and implicitly the count.
In json the DataBase it would look like this:
"qmlDesignerDuration"
{ "idForNewDurationEvent" : "list of integers, each is a duration in ms." }The number of events is stored implicitly as the size of the list.
We can start with livePreviewAfterBirdgeImport and runAfterBridgeImport.