diff --git a/userspace/engine/stats_manager.cpp b/userspace/engine/stats_manager.cpp index 1ba347b6..d130f6d3 100644 --- a/userspace/engine/stats_manager.cpp +++ b/userspace/engine/stats_manager.cpp @@ -19,6 +19,16 @@ limitations under the License. using namespace std; +stats_manager::stats_manager() + : m_total(0) +{ +} + +stats_manager::~stats_manager() +{ + clear(); +} + void stats_manager::clear() { m_total = 0; diff --git a/userspace/engine/stats_manager.h b/userspace/engine/stats_manager.h index a1308954..5be98cc7 100644 --- a/userspace/engine/stats_manager.h +++ b/userspace/engine/stats_manager.h @@ -27,6 +27,9 @@ limitations under the License. class stats_manager { public: + stats_manager(); + virtual ~stats_manager(); + /*! \brief Erases the internal state and statistics data */