Skip to content

src/dazzle_back/metrics/throughput.py

Generated: 2026-03-30T04:38:46.451557+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Throughput counter for rate measurement.

Provides events-per-second calculations with sliding window averaging.

Key Exports

  • ThroughputStats
  • ThroughputCounter
  • ThroughputTracker
  • increment
  • stats
  • reset
  • to_dict
  • increment
  • get
  • all_stats
  • to_dict
  • reset_all

Dependencies

Imports

  • __future__.annotations
  • threading
  • time
  • dataclasses.dataclass
  • dataclasses.field
  • typing.Any

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

No related tests found.

Notes

This page was automatically generated by tools/gen_reference_docs.py.