-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/280/output dds #329
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial review for C++ Classic
perftest_qos_profiles.xml
Outdated
<resource_limits> | ||
<max_samples>10</max_samples> | ||
<initial_samples>1</initial_samples> | ||
<max_samples_per_instance>1</max_samples_per_instance> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix indentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
srcIdl/perftest.idl
Outdated
@optional unsigned long long min; | ||
@optional unsigned long long max; | ||
@optional unsigned long long h50; | ||
@optional unsigned long long h90; | ||
@optional unsigned long long h99; | ||
@optional unsigned long long h9999; | ||
@optional unsigned long long h999999; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this to unsigned long
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
srcIdl/perftest.idl
Outdated
@optional unsigned long long packets; | ||
@optional unsigned long long packetsS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change these to unsigned long
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets call them:
packets
packetsPerSecond
packetsAverage
mbps
mbpsAverage
lostPackets
lostPacketsPercent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, but in perftest_publisher.cpp, packets and packetsPerSecond are unsigned long long data types
srcIdl/perftest.idl
Outdated
@optional perftestLatencyInfo pLatencyInfo; | ||
@optional perftestThroughputInfo pThroughputInfo; | ||
@optional double outputCpu; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a new line at the end of the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
srcIdl/perftest.idl
Outdated
@optional double packetsAve; | ||
@optional double mbps; | ||
@optional double mbpsAve; | ||
@optional unsigned long long lost; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unsigned long
srcCpp/perftest_publisher.cxx
Outdated
@@ -1334,6 +1318,7 @@ class LatencyListener : public IMessagingCB | |||
IMessagingWriter *_writer; | |||
ParameterManager *_PM; | |||
PerftestPrinter *_printer; | |||
LatencyInfo _latInfo; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_latencyInfo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
srcCpp/perftest_publisher.cxx
Outdated
@@ -1391,6 +1376,9 @@ class LatencyListener : public IMessagingCB | |||
_PM = &PM; | |||
_printer = printer; | |||
|
|||
_latInfo.dataLength = _printer->_dataLength; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can use last_data_length instead of asking the _printer for the datalen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels weird asking an structure for a member that you are going to later set in the same structure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, now it's _latencyInfo.dataLength = last_data_length
srcCpp/RTIDDSImpl.h
Outdated
DDSDomainParticipant *participant; | ||
DDSPublisher *publisher; | ||
DDSTopic *topic; | ||
perftestInfoDataWriter *ptInfoWriter; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
infoDataWriter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
srcCpp/RTIDDSImpl.h
Outdated
DDSPublisher *publisher; | ||
DDSTopic *topic; | ||
perftestInfoDataWriter *ptInfoWriter; | ||
perftestInfo *ptInfo; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perftestInfo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
DDS_PublisherQos publisherQos; | ||
DDS_DataWriterQos dwQos; | ||
|
||
#ifndef RTI_MICRO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we check what is the behavior when using micro? We might need to make this differently.
This pull request is coming from the issue #280