mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Allow to limit number of messages for the Benchmark sampler and sink
This commit is contained in:
committed by
Florian Uhlig
parent
c10a6abeef
commit
0e1a1ad552
@@ -28,8 +28,9 @@ class FairMQBenchmarkSampler : public FairMQDevice
|
||||
public:
|
||||
enum
|
||||
{
|
||||
EventSize = FairMQDevice::Last,
|
||||
EventRate,
|
||||
MsgSize = FairMQDevice::Last,
|
||||
NumMsgs,
|
||||
MsgRate,
|
||||
Last
|
||||
};
|
||||
|
||||
@@ -37,7 +38,6 @@ class FairMQBenchmarkSampler : public FairMQDevice
|
||||
virtual ~FairMQBenchmarkSampler();
|
||||
|
||||
void Log(int intervalInMs);
|
||||
void ResetEventCounter();
|
||||
|
||||
virtual void SetProperty(const int key, const std::string& value);
|
||||
virtual std::string GetProperty(const int key, const std::string& default_ = "");
|
||||
@@ -48,9 +48,8 @@ class FairMQBenchmarkSampler : public FairMQDevice
|
||||
virtual void ListProperties();
|
||||
|
||||
protected:
|
||||
int fEventSize;
|
||||
int fEventRate;
|
||||
int fEventCounter;
|
||||
int fMsgSize;
|
||||
int fNumMsgs;
|
||||
|
||||
virtual void Run();
|
||||
};
|
||||
|
Reference in New Issue
Block a user