27 : packets_ (0u), bytes_ (0u), minSize_ (0u), maxSize_ (0u), factor_ (0.0f)
39 prefix_ void senf::ppi::module::RateAnalyzer::v_handlePacket(
Packet const & p)
44 if (sz < minSize_ || minSize_ == 0u) minSize_ = sz;
45 if (sz > maxSize_) maxSize_ = sz;
48 prefix_ void senf::ppi::module::RateAnalyzer::tick()
54 packets_ = bytes_ = minSize_ = maxSize_ = 0;
boost::signals2::signal< void(float)> packetsPerSecond
config::time_type clock_type
void interval(ClockService::clock_type interval, unsigned eventsPerInterval=1)
RateAnalyzer public header.
static SENF_CLOCKSERVICE_CONSTEXPR clock_type seconds(int64_type const &v)
PacketData & data() const
void startStatistics(senf::ClockService::clock_type interval)
Start generating statistics at given interval.
static SENF_CLOCKSERVICE_CONSTEXPR int64_type in_nanoseconds(clock_type const &v)
void registerEvent(EventDescriptor &descriptor, Target target)
Register an external event.
struct senf::ppi::module::RateAnalyzer::Statistics signals
boost::signals2::signal< void(unsigned, float, unsigned)> bytesPerPacket
boost::signals2::signal< void(float)> bytesPerSecond