densoGSR / lf_test

Lingua Franca Test programs
1 stars 0 forks source link

Reaction execution time resolution #1

Closed akihitoiwai0912 closed 3 weeks ago

akihitoiwai0912 commented 2 months ago

Test code

Reaction execution time view

In the WCET view and Maxmum lag view, up to the microsec order is displayed, for example, 10.3 ms is displayed, but when checked in the reaction execution time view, duration 10 ms is displayed at mouseover. The minimum display unit may be 1 ms. Similarly, it is good to display up to the microsec order as well as other factor for example idle time.

image

Reaction WCET view

スクリーンショット_22-8-2024_103229_localhost

Maxmum Lag view

スクリーンショット_22-8-2024_10335_localhost

elgeeko1 commented 2 months ago

The user interface component this references is the hover tooltip in Grafana. Some (but not all) panel types display a value of a measurement on mouse hover. The reaction execution measurement utilizes the Grafana "State Timeline" panel, which automatically determines the durations between state transitions. Unfortunately resolution of the hover tooltip does not appear to be configurable for this panel. We would need to investigate workarounds or alternative solutions.

It would be nice to have a higher resolution in the hover tooltip. You can measure the duration more accurately by zooming in and using cursors at the start and endpoints. It's cumbersome but will work.

akihitoiwai0912 commented 2 months ago

Thank you for your kind explaination! I could understand the mechanism. But I appreciate your further investigation to improve that. In addition, it would be helpful if you could demonstrate how to increase the resolution of hover tooltips at our next meeting.

elgeeko1 commented 2 months ago

For panels that support hover tooltip, the default resolution will be the resolution of the x-axis. This default may be overridden specifically for the hover tooltip parameter.

The panel type we used for the reaction execution time diagram, the State Transition panel, computes the duration of the state change and shows the computed value on hover, though it is not the value of the x-axis which is physical timestamps. Unfortunately it appears this panel does not support changing the resolution of its hover tooltip, so there is not a change we can demonstrate for this.