From 16c28db384adbe61034eb8a2267cd6a886ffd72f Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Thu, 1 Dec 2016 21:42:51 +0100 Subject: Added the client side code for the statsd in the nodes. --- libcmix-common/performanceclient.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libcmix-common/performanceclient.hpp (limited to 'libcmix-common/performanceclient.hpp') diff --git a/libcmix-common/performanceclient.hpp b/libcmix-common/performanceclient.hpp new file mode 100644 index 0000000..cb9afb1 --- /dev/null +++ b/libcmix-common/performanceclient.hpp @@ -0,0 +1,16 @@ +#pragma once + +#include "sender.hpp" + +#include + +class PerformanceClient +{ + std::string node_name; + Sender sender; + boost::timer::cpu_timer timer; +public: + PerformanceClient(std::string name, boost::asio::io_service& io_service, std::string host, std::string port); + + void send(std::string column); +}; \ No newline at end of file -- cgit v1.2.3-70-g09d2