-
Notifications
You must be signed in to change notification settings - Fork 721
Move PcapLiveDevice statistics machinery entirely inside the .cpp file. #1966
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
Move PcapLiveDevice statistics machinery entirely inside the .cpp file. #1966
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #1966 +/- ##
==========================================
- Coverage 83.51% 83.48% -0.03%
==========================================
Files 311 311
Lines 54897 54881 -16
Branches 12213 12182 -31
==========================================
- Hits 45845 45820 -25
- Misses 7788 8207 +419
+ Partials 1264 854 -410
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
This PR reverts many of the changes done here: #1785, I'm curious why we're moving back and forth? 🤔
The first change was an attempt to separate the variables only needed for the thread procedures away from the rest of the device. As I was reworking the capture thread variables, I figured that having said variables grouped as contexts and passed to a pure function procedure would be better for internal representation. That way, the level of indirection done by the polymorphic Since the workers are one-offs and won't be reused, it is a simpler solution that would only keep |
Split of #1838, since that one has been sitting for a while.
This part moves only the statistics worker to be entirely internal to the PcapLiveDevice translation unit.