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

[10792] Collection of data and notification to listeners PUBLICATION_THROUGHPUT #1955

Merged
merged 4 commits into from
May 18, 2021

Conversation

MiguelBarro
Copy link
Contributor

It was decided to retake the concept of reporting rate instead of the number of bytes. The change simplifies things and if in the future the amount of bytes is necessary we can extend the idl.

The callback will return bytes/second ( payload size / time span since the last callback). We only need to keep the
timestamp of the last callback and initialize it on construction (creation is the first callback).

@MiguelBarro MiguelBarro temporarily deployed to codecov May 12, 2021 14:07 Inactive
JLBuenoLopez
JLBuenoLopez previously approved these changes May 17, 2021
Copy link
Contributor

@JLBuenoLopez JLBuenoLopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Only a suggestion to clarify the documentation

@@ -172,6 +172,13 @@ class StatisticsWriterImpl
/// Notify listeners of DATA / DATA_FRAG counts
void on_data_sent();

/**
* @brief Reports throughtput based on last added sample to history
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @brief Reports throughtput based on last added sample to history
* @brief Reports publication throughtput based on last added sample to writer's history

@@ -78,6 +78,15 @@ class StatisticsWriterImpl
{
}

/**
* @brief Reports throughtput based on last added sample to history
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @brief Reports throughtput based on last added sample to history
* @brief Reports publication throughtput based on last added sample to writer's history

Copy link
Contributor

@JLBuenoLopez JLBuenoLopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@MiguelCompany MiguelCompany merged commit a88d8c2 into master May 18, 2021
@MiguelCompany MiguelCompany deleted the feature/statistics/rtps/publication_throughput branch May 18, 2021 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants