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

Report resource usage at the end #125

Open
wants to merge 1 commit into
base: sockperf_v2
Choose a base branch
from

Conversation

pasis
Copy link
Member

@pasis pasis commented Oct 4, 2019

Measure resources used by a test and print it in human readable format.

Warmup stage adds a significant error if we collect performance
counters for the whole sockperf process. As solution, the counters are
measured inside the process and around the actual test.

This patch reports CPU usage and context switches for Unix-like OSes.

Measure resources used by a test and print it in human readable format.

Warmup stage adds a significant error if we collect performance
counters for the whole sockperf process. As solution, the counters are
measured inside the process and around the actual test.

Signed-off-by: Dmytro Podgornyi <[email protected]>
@@ -431,6 +431,9 @@ void Client<IoType, SwitchDataIntegrity, SwitchActivityInfo, SwitchCycleDuration

log_msg("Test ended");

resources_sub(&m_rusage_end, &m_rusage_start, &m_rusage);
Copy link
Collaborator

Choose a reason for hiding this comment

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

m_rusage can be local

@igor-ivanov
Copy link
Collaborator

bot:retest

@Mellanox Mellanox deleted a comment from swx-jenkins3 Sep 6, 2022
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.

None yet

2 participants