1
0
mirror of https://github.com/peterantypas/maiana.git synced 2025-05-17 16:00:08 -07:00
2020-11-04 10:04:23 -08:00

33 lines
474 B
C++

/*
* Stats.hpp
*
* Created on: Nov 4, 2020
* Author: peter
*/
#ifndef INC_STATS_HPP_
#define INC_STATS_HPP_
#include <stdint.h>
#include "EventQueue.hpp"
class Stats : public EventConsumer
{
public:
static Stats &instance();
void init();
void processEvent(const Event &e);
private:
Stats();
public:
int eventQueuePopFailures = 0;
int eventQueuePushFailures = 0;
int rxPacketPoolPopFailures = 0;
};
#endif /* INC_STATS_HPP_ */