-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ReadHandler] Synchronized report scheduler (#27943)
* Added a Synchronized ReportScheduler along with test to confirm the behavior on the scheduler with up to 4 ReadHandlers as well logging mechanism to find out what handler fires at what time. * Added a quick fix because TestDecoding won't compile otherwise, this doesn't belong here * Apply suggestions from code review Co-authored-by: Boris Zbarsky <[email protected]> * Refactored ReportScheduler Impls to better take advantage of inheritance, removed bloat, excluded test for platform in which problems are caused due to unprocessed engine runs * Apply suggestions from code review Co-authored-by: Boris Zbarsky <[email protected]> * Applied comment review and refactoed next timeout calculation logic * Completed unit test and logic * Passing a ReportSchedulerPointer instead of an std::function to avoid dynamical memory allocation * undid ReadHandler changes * Update src/app/reporting/ReportScheduler.h Co-authored-by: Boris Zbarsky <[email protected]> * Removed un-necessary nullptr check, addressed comments regarding tests and added doc on unclear behavior * Addressed redundant test --------- Co-authored-by: Boris Zbarsky <[email protected]>
- Loading branch information
Showing
8 changed files
with
814 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.