Add class Telemetry.
This commit is contained in:
parent
6774f86fcd
commit
a370b8fd30
11 changed files with 241 additions and 5 deletions
|
@ -25,6 +25,7 @@
|
|||
#define __WORKER_H__
|
||||
|
||||
|
||||
#include <atomic>
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
|
@ -41,11 +42,18 @@ public:
|
|||
Worker(Handle *handle);
|
||||
~Worker();
|
||||
|
||||
inline uint64_t hashCount() const override { return m_hashCount.load(std::memory_order_relaxed); }
|
||||
inline uint64_t timestamp() const override { return m_timestamp.load(std::memory_order_relaxed); }
|
||||
|
||||
protected:
|
||||
void storeStats();
|
||||
|
||||
bool m_nicehash;
|
||||
cryptonight_ctx *m_ctx;
|
||||
int m_id;
|
||||
int m_threads;
|
||||
std::atomic<uint64_t> m_hashCount;
|
||||
std::atomic<uint64_t> m_timestamp;
|
||||
uint64_t m_count;
|
||||
uint64_t m_sequence;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue