FairMQBenchmarkSampler.h
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
* copied verbatim in the file "LICENSE" *
********************************************************************************/
#ifndef FAIRMQBENCHMARKSAMPLER_H_
#define FAIRMQBENCHMARKSAMPLER_H_
#include <string>
#include <thread>
#include "FairMQDevice.h"
class FairMQBenchmarkSampler : public FairMQDevice
{
public:
FairMQBenchmarkSampler();
virtual ~FairMQBenchmarkSampler();
void PreRun() override;
void PostRun() override;
void ResetMsgCounter();
protected:
bool fSameMessage;
int fMsgSize;
int fMsgCounter;
int fMsgRate;
uint64_t fNumIterations;
uint64_t fMaxIterations;
std::string fOutChannelName;
std::thread fResetMsgCounter;
virtual void InitTask() override;
virtual void Run() override;
};
#endif /* FAIRMQBENCHMARKSAMPLER_H_ */
FairMQBenchmarkSampler
Definition: FairMQBenchmarkSampler.h:27
FairMQBenchmarkSampler::PreRun
void PreRun() override
Definition: FairMQBenchmarkSampler.cxx:50
FairMQBenchmarkSampler::PostRun
void PostRun() override
Definition: FairMQBenchmarkSampler.cxx:115
FairMQDevice
Definition: FairMQDevice.h:44
FairMQBenchmarkSampler::InitTask
virtual void InitTask() override
Definition: FairMQBenchmarkSampler.cxx:41
FairMQBenchmarkSampler::Run
virtual void Run() override
Definition: FairMQBenchmarkSampler.cxx:55