Runtime configuration of diagnostics related to the RX-DO-TX phases #971
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces the xml parsing of configuration of the diagnostics associated to the execution loop and its transmission towards the
ETH
boards.In particular, it will be possible to:
RX
,DO
andTX
phases. The default is enabled.RX
,DO
andTX
phases. It will be reported minimum, average and maximum durations of the phases over a period configurable between 1 and 600 seconds. The default is disabled.This latter feature is particularly useful when one wants to measure the effective duration of
RX
,DO
andTX
phases for a particular board over a period of time. As shown later It is possible to activate the sectionLOGGING.PERIODIC
and setLOGGING.PERIODIC.emitRXDOTXstatistics
= true to achieve such a statistics (min, average and max duration) over a period of time =LOGGING.PERIODIC.period
seconds.Format of xml file
The parsing will search for a group named
LOGGING
insideETH_BOARD.ETH_BOARD_SETTINGS.RUNNINGMODE
that has the following format:Backwards compatibility
If the section
ETH_BOARD.ETH_BOARD_SETTINGS.RUNNINGMODE.LOGGING
is not present the following default values will be used that guarantee behavior as now:LOGGING.IMMADIATE.emitRXDOTXoverflow
= true;LOGGING.PERIODIC.period
= 0;LOGGING.PERIODIC.emitRXDOTXstatistics
= false;Associated PRs
Tests
Performed on a dedicated setup.
Example of output with
LOGGING.PERIODIC.period = 10.0
andLOGGING.PERIODIC.emitRXDOTXstatistics = true
are:Similar results with different values of the period such as
LOGGING.PERIODIC.period = 60.0
With no section on the xml file or with
LOGGING.PERIODIC.emitRXDOTXstatistics = false
the INFO messages are not sent.