aboutsummaryrefslogtreecommitdiff
path: root/zencore/stats.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Format fix.Per Larsson2022-01-221-3/+2
|
* Use a CAS loop if atomic<Floating>::fetch_add() isn't availableMartin Ridgers2021-12-161-1/+13
|
* Fixed signed/unsigned comparison mismatchMartin Ridgers2021-10-071-1/+1
|
* Support for asynchronous HTTP response processing (#19)Stefan Boberg2021-10-061-8/+63
| | | | | | | | This change introduces WriteResponseAsync which can be used to move potentially slow request handler code (like upstream lookups) off the I/O service thread to ensure we are always able to serve as many HTTP requests as possible. The current implementation defaults to 16 async worker threads and there is currently no back-pressure. - Added RequestStats - Metrics for network requests. Aggregates tracking of duration, payload sizes into a single class for ease of use - Added some metrics on upstream communication Co-authored-by: Per Larsson <[email protected]>
* stats: Mean returns zero when the count is zeroStefan Boberg2021-10-051-1/+8
|
* stats: added OperationTiming::Scope::CancelStefan Boberg2021-10-031-1/+10
|
* metrics: added OperationTiming which is a useful combination of a Meter and ↵Stefan Boberg2021-09-301-0/+72
| | | | a Histogram, intended to track frequency and duration of certain operations
* stats: Added EmitSnapshot functions to emit metrics into CbObjectsStefan Boberg2021-09-301-8/+38
|
* stats: added Histogram, UniformSample and SampleSnapshotStefan Boberg2021-09-291-3/+254
|
* stats: Completed Meter implementationStefan Boberg2021-09-271-24/+217
|
* It's not possible to compile out testsStefan Boberg2021-09-201-1/+8
| | | | Tests are now compiled in if `ZEN_WITH_TESTS=1`, and compiled out if not. Compiling tests out reduces the footprint of the resulting executables quite significantly.
* Adding zenservice codeStefan Boberg2021-05-111-0/+73