18.11. Statistics Module Frequently Asked Questions
What is the purpose of the statistics module?
The Fast DDS Statistics module is an extension of Fast DDS that enables the recollection of data concerning the DDS communication.
For further information, refer to Statistics Module.
How does the statistics module work?
The collected data is published using DDS over dedicated topics using builtin DataWriters within the Statistics module.
For further information, refer to Statistics Domain Participant.
What is the consequence of compiling the statistics module?
It may entail affecting the application’s performance.
For further information, refer to Statistics Module.
How can we activate the statistics module?
It can be activated using the -DFASTDDS_STATISTICS=ON
at CMake configuration step.
For further information, refer to Statistics Module.
How can we start collecting data?
In order to start collecting data in one of the statistics topics, the corresponding statistics DataWriter should be enabled.
For further information, refer to Statistics Domain Participant.
How can we enable the statistics DataWriter?
It can either be done automatically or be enabled at run time using one of two methods: enable_statistics_datawriter()
or enable_statistics_datawriter_with_profile()
.
For further information, refer to Enable statistics DataWriters.
How is the environment variable "FASTDDS_STATISTICS" used?
The environment variable is only used in the case where the CMake option FASTDDS_STATISTICS
has been enabled.
In any other case, the environment variable has no effect.
The statistics DataWriters that will be enabled when the DomainParticipant
is enabled would be the union between those specified in the properties()
fastdds.statistics
and those included with the environment variable.
For further information, refer to FASTDDS_STATISTICS.
What is the monitor service?
The Monitor Service targets any application implementing the subscription side of the Monitor Service Status Topic, giving the possibility of retrieving the Monitoring Information of the local entities.
For further information, refer to Introduction.
What Information can the monitor service carry?
It can carry information about the monitoring information of the local entities of a particular DomainParticipant.
For further information, refer to Introduction.
How can the monitor service be activated?
The Monitor Service can be activated using the -DFASTDDS_STATISTICS=ON
at CMake configuration step.
For further information, refer to Monitor Service Configuration.
At which layers can the monitor service be enabled?
It can be programmatically enabled in both DDS Layer and RTPS Layer through the enable_monitor_service()
and disable_monitor_service()
calls.
For further information, refer to Monitor Service Configuration.