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

Latency test with maximum stats and custom process evaluation #773

Merged
merged 8 commits into from
Feb 5, 2024

Conversation

balazsracz
Copy link
Collaborator

Updates the latency test of hub_test:

  • refactors the stats printing code into the Stats class
  • adds max statistic to the class
  • adds the latency consumer object that can be included in a product to verify the application level latency.

@@ -86,9 +94,14 @@ public:
return sqrt(qsum_ * count_ - sum * sum) / count_;
}

/// Creates a half-a-line prinout of this stats object for debug purposes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

prinout -> printout

@balazsracz balazsracz changed the base branch from bracz-esp-compiler-warnings to bracz-tmp-compile-fix-merge February 4, 2024 00:20
* bracz-tmp-compile-fix-merge:
  Fix compiler warnings in openmrn when using new GCC's. (#772)
  Fix comment.
  Upintegrate changes from the OpenMRNIDF repository (#771)
  Fix comments.
  Adds support for DCC extended accessories  (#769)
  Fix incorrect consumer identified message being emitted by dcc accy producer. (#768)
  Avoids rendering hidden segments. (#767)
  Adds trailing zero to the cdi XML file written to the filesystem. (#777)
  Fix target subdirectory name (#775)
@balazsracz balazsracz merged commit 1255db0 into bracz-tmp-compile-fix-merge Feb 5, 2024
4 checks passed
@balazsracz balazsracz deleted the bracz-stat-max branch February 5, 2024 03:12
@balazsracz balazsracz restored the bracz-stat-max branch February 5, 2024 03:13
balazsracz added a commit that referenced this pull request Feb 5, 2024
Updates the latency test of hub_test:
- refactors the stats printing code into the Stats class
- adds max statistic to the class
- adds the latency consumer object that can be included in a product to verify the application level latency.

===

* Adds a debug print function to the stats object.
This will be usable for printing a summary of the stats for a developer printout like a log statement.

* Adds maximum to the statistics object.

* Adds a consumer object for event based testing.

* Adds hook to the latency test consumer. This allows testing latency
of arbitrary internal node processing.

* Adds documentation comment to latency test consumer.

* Fix comment.

* Fixes data type of max.
balazsracz added a commit that referenced this pull request Feb 5, 2024
* master:
  Latency test with maximum stats and custom process evaluation (#773)
balazsracz added a commit that referenced this pull request Feb 5, 2024
* bracz-stat-max:
  Latency test with maximum stats and custom process evaluation (#773)
  Fixes data type of max.
  Fix comment.
  Adds documentation comment to latency test consumer.
  Fix compiler warnings in openmrn when using new GCC's. (#772)
  Fix comment.
  Upintegrate changes from the OpenMRNIDF repository (#771)
  Fix comments.
  Adds support for DCC extended accessories  (#769)
  Fix incorrect consumer identified message being emitted by dcc accy producer. (#768)
  Avoids rendering hidden segments. (#767)
  Adds trailing zero to the cdi XML file written to the filesystem. (#777)
  Fix target subdirectory name (#775)
@balazsracz balazsracz deleted the bracz-stat-max branch February 5, 2024 03:17
@balazsracz
Copy link
Collaborator Author

Note: I merged this PR into the wrong branch (forgot to reset the base to master). To fix this, I cherrypicked the squashed commit into the master as b946516

balazsracz added a commit that referenced this pull request Feb 5, 2024
* master:
  Fix esp32 select race conditions. (#780)
  Latency test with maximum stats and custom process evaluation (#773)
  Fix compiler warnings in openmrn when using new GCC's. (#772)
  Upintegrate changes from the OpenMRNIDF repository (#771)
  Adds support for DCC extended accessories  (#769)
  Fix incorrect consumer identified message being emitted by dcc accy producer. (#768)
  Avoids rendering hidden segments. (#767)
  Adds trailing zero to the cdi XML file written to the filesystem. (#777)
  Fix target subdirectory name (#775)
  Fixes file comment.
  Adds an application (hub_test) for testing the throughput of a hub or a CAN-bus (#762)
  Adds a helper function to decode a 14-bit 9.2.1.1 address into address type and raw address. (#766)
  Fix broken test.
  Accessory packet refactoring and POM support (#764)
balazsracz added a commit that referenced this pull request Jun 21, 2024
…t-hub-router

# By Balazs Racz (26) and others
* 'master' of github.com:bakerstu/openmrn: (28 commits)
  Fix build of esp8266 train implementation.
  Removes unnecessary includes that might not exist on an embedded compiler.
  Fix compilation of TempFile under esp8266.
  Add libatomic to esp8266 nonos target.
  Fix compile errors in time_client app.
  Fixes in file memory space: (#786)
  Change startup state to stopped. (#784)
  Fixes write code for spiflash. (#782)
  Handles bus passive in TivaCan. (#781)
  Update libify to support IDF export with symlinks (#770)
  Fix esp32 select race conditions. (#780)
  Latency test with maximum stats and custom process evaluation (#773)
  Fix compiler warnings in openmrn when using new GCC's. (#772)
  Upintegrate changes from the OpenMRNIDF repository (#771)
  Adds support for DCC extended accessories  (#769)
  Fix incorrect consumer identified message being emitted by dcc accy producer. (#768)
  Avoids rendering hidden segments. (#767)
  Adds trailing zero to the cdi XML file written to the filesystem. (#777)
  Fix target subdirectory name (#775)
  Fixes file comment.
  ...

# Conflicts:
#	src/utils/constants.cxx
#	src/utils/sources
balazsracz added a commit that referenced this pull request Jun 21, 2024
* bracz-direct-hub-router: (35 commits)
  High-performance hub component for dealing with many sockets and high throughput (#760)
  Fix test build.
  Fixed comment and adds a todo.
  Remove unnecessary log.
  Fix comments and reduce unnecessary log level.
  FIx comments.
  Fix build of esp8266 train implementation.
  Removes unnecessary includes that might not exist on an embedded compiler.
  Fix compilation of TempFile under esp8266.
  Add libatomic to esp8266 nonos target.
  Fix compile errors in time_client app.
  Fixes in file memory space: (#786)
  Change startup state to stopped. (#784)
  Fixes write code for spiflash. (#782)
  Handles bus passive in TivaCan. (#781)
  Update libify to support IDF export with symlinks (#770)
  Fix esp32 select race conditions. (#780)
  Latency test with maximum stats and custom process evaluation (#773)
  Fix compiler warnings in openmrn when using new GCC's. (#772)
  Upintegrate changes from the OpenMRNIDF repository (#771)
  ...
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.

2 participants