The Wayback Machine - https://web.archive.org/web/20200918125632/https://github.com/rticommunity/rtiperftest/pull/329
Skip to content
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

Open
wants to merge 80 commits into
base: feature/280/rework
from
Open

Conversation

@pparrilla
Copy link
Collaborator

pparrilla commented Jun 10, 2020

This pull request is coming from the issue #280

@pparrilla pparrilla requested a review from javmorcas Jun 10, 2020
javmorcas and others added 5 commits Jun 12, 2020
@javmorcas javmorcas changed the base branch from master to feature/280/rework Jun 15, 2020
Copy link
Member

javmorcas left a comment

Initial review for C++ Classic

<resource_limits>
<max_samples>10</max_samples>
<initial_samples>1</initial_samples>
<max_samples_per_instance>1</max_samples_per_instance>
Comment on lines 1102 to 1105

This comment has been minimized.

@javmorcas

javmorcas Jun 15, 2020 Member

Fix indentation.

This comment has been minimized.

@pparrilla

pparrilla Jun 15, 2020 Author Collaborator

ok

@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;
Comment on lines 202 to 208

This comment has been minimized.

@javmorcas

javmorcas Jun 15, 2020 Member

Change this to unsigned long

This comment has been minimized.

@pparrilla

pparrilla Jun 15, 2020 Author Collaborator

ok

@optional unsigned long long packets;
@optional unsigned long long packetsS;
Comment on lines 190 to 191

This comment has been minimized.

@javmorcas

javmorcas Jun 15, 2020 Member

Change these to unsigned long

This comment has been minimized.

@javmorcas

javmorcas Jun 15, 2020 Member

Lets call them:

packets
packetsPerSecond
packetsAverage
mbps
mbpsAverage
lostPackets
lostPacketsPercent

This comment has been minimized.

@pparrilla

pparrilla Jun 15, 2020 Author Collaborator

ok, but in perftest_publisher.cpp, packets and packetsPerSecond are unsigned long long data types

@optional perftestLatencyInfo pLatencyInfo;
@optional perftestThroughputInfo pThroughputInfo;
@optional double outputCpu;
};

This comment has been minimized.

@javmorcas

javmorcas Jun 15, 2020 Member

Add a new line at the end of the file.

This comment has been minimized.

@pparrilla

pparrilla Jun 15, 2020 Author Collaborator

ok

@optional double packetsAve;
@optional double mbps;
@optional double mbpsAve;
@optional unsigned long long lost;

This comment has been minimized.

@javmorcas

javmorcas Jun 15, 2020 Member

Unsigned long

@@ -1334,6 +1318,7 @@ class LatencyListener : public IMessagingCB
IMessagingWriter *_writer;
ParameterManager *_PM;
PerftestPrinter *_printer;
LatencyInfo _latInfo;

This comment has been minimized.

@javmorcas

javmorcas Jun 15, 2020 Member

_latencyInfo

This comment has been minimized.

@pparrilla

pparrilla Jun 22, 2020 Author Collaborator

ok

This comment has been minimized.

@pparrilla

pparrilla Jun 22, 2020 Author Collaborator

ok

@@ -1391,6 +1376,9 @@ class LatencyListener : public IMessagingCB
_PM = &PM;
_printer = printer;

_latInfo.dataLength = _printer->_dataLength;

This comment has been minimized.

@javmorcas

javmorcas Jun 15, 2020 Member

I think you can use last_data_length instead of asking the _printer for the datalen.

This comment has been minimized.

@javmorcas

javmorcas Jun 15, 2020 Member

It feels weird asking an structure for a member that you are going to later set in the same structure

This comment has been minimized.

@pparrilla

pparrilla Jun 22, 2020 Author Collaborator

ok, now it's _latencyInfo.dataLength = last_data_length

DDSDomainParticipant *participant;
DDSPublisher *publisher;
DDSTopic *topic;
perftestInfoDataWriter *ptInfoWriter;

This comment has been minimized.

@javmorcas

javmorcas Jun 15, 2020 Member

infoDataWriter

This comment has been minimized.

@pparrilla

pparrilla Jun 22, 2020 Author Collaborator

ok

DDSPublisher *publisher;
DDSTopic *topic;
perftestInfoDataWriter *ptInfoWriter;
perftestInfo *ptInfo;

This comment has been minimized.

@javmorcas

javmorcas Jun 15, 2020 Member

perftestInfo

This comment has been minimized.

@pparrilla

pparrilla Jun 22, 2020 Author Collaborator

ok

DDS_PublisherQos publisherQos;
DDS_DataWriterQos dwQos;

#ifndef RTI_MICRO

This comment has been minimized.

@javmorcas

javmorcas Jun 15, 2020 Member

Can we check what is the behavior when using micro? We might need to make this differently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.