aboutsummaryrefslogtreecommitdiff
path: root/libcmix-common/performanceclient.hpp
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-12-01 21:42:51 +0100
committerDennis Brentjes <d.brentjes@gmail.com>2016-12-01 21:43:48 +0100
commit16c28db384adbe61034eb8a2267cd6a886ffd72f (patch)
tree426be5a41f5186ba17e909dda90afca5b7921c30 /libcmix-common/performanceclient.hpp
parent463b8ec708db0d2d7405d434e28d0140c94b1d98 (diff)
downloadcmix-16c28db384adbe61034eb8a2267cd6a886ffd72f.tar.gz
cmix-16c28db384adbe61034eb8a2267cd6a886ffd72f.tar.bz2
cmix-16c28db384adbe61034eb8a2267cd6a886ffd72f.zip
Added the client side code for the statsd in the nodes.
Diffstat (limited to 'libcmix-common/performanceclient.hpp')
-rw-r--r--libcmix-common/performanceclient.hpp16
1 files changed, 16 insertions, 0 deletions
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 <boost/timer/timer.hpp>
+
+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