Actions
Task #5615
openTask #5611: tracking: counters: improve efficiency of stats tracking
counters: avoid duplicate work
Effort:
Difficulty:
Label:
Description
Currently all counters always increment 2 fields: updates and value. This makes no sense for simple counters that just increment with one at a time, like the decoder.pkts counter. For those updates and value will always be the same.
Worse, the decoder.bytes counter will be updated the exact same number of types, so the updates field of this counter will be exactly the same as both fields in decoder.pkts.
Updated by Victor Julien 20 days ago
Wonder if we could introduce a higher level construct, like a derived counter. E.g.
RegisterDerivedCounter("decoder.avg_pkt_size", DERIVE_DIVIDE, "decoder.bytes", "decoder.pkts");
This could then be resolved by the stats thread that accumulates the stats.
Updated by Victor Julien 7 days ago
- Status changed from New to In Review
- Assignee changed from OISF Dev to Victor Julien
- Target version changed from TBD to 9.0.0-beta1
Actions