|
libqi-api
release-2.5.3-2016-11-18
|
Class to compute and store a benchmark time. More...
#include <dataperf.hpp>
Public Member Functions | |
| DataPerf () | |
| Default constructor. More... | |
| ~DataPerf () | |
| Default destructor. More... | |
| void | start (const std::string &benchmarkName, unsigned long loopCount=1, unsigned long msgSize=0, const std::string &variable="") |
| Start measuring time. More... | |
| void | stop () |
| Stop measuring time. More... | |
| std::string | getBenchmarkName () const |
| Return the name of the benchmark. More... | |
| std::string | getVariable () const |
| Return the variable of the benchmark. More... | |
| unsigned long | getMsgSize () const |
| Return the size of message transmitted. More... | |
| double | getPeriod () const |
| Return the average time taken by a single execution of the benchmarked code. More... | |
| double | getCpu () const |
| Return the time take by the CPU against the total time. More... | |
| double | getMsgPerSecond () const |
| Return the number of messages transmitted in a single second. More... | |
| double | getMegaBytePerSecond () const |
| Return the MB transmitted in a single second. More... | |
Class to compute and store a benchmark time.
Definition at line 21 of file dataperf.hpp.
| DataPerf::DataPerf | ( | ) |
Default constructor.
| DataPerf::~DataPerf | ( | ) |
Default destructor.
| DataPerf::getBenchmarkName | ( | ) | const |
Return the name of the benchmark.
| DataPerf::getCpu | ( | ) | const |
Return the time take by the CPU against the total time.
| DataPerf::getMegaBytePerSecond | ( | ) | const |
Return the MB transmitted in a single second.
| DataPerf::getMsgPerSecond | ( | ) | const |
Return the number of messages transmitted in a single second.
| DataPerf::getMsgSize | ( | ) | const |
Return the size of message transmitted.
| DataPerf::getPeriod | ( | ) | const |
Return the average time taken by a single execution of the benchmarked code.
| std::string qi::DataPerf::getVariable | ( | ) | const |
Return the variable of the benchmark.
| DataPerf::start | ( | const std::string & | benchmarkName, |
| unsigned long | loopCount = 1, |
||
| unsigned long | msgSize = 0, |
||
| const std::string & | variable = "" |
||
| ) |
Start measuring time.
* This function is used to start measuring time. *
| benchmarkName | Name of the benchmark (generally what this bencks measure). |
| loopCount | How many time benchmarked code have been loop (used for calculus). |
| msgSize | The size of the data transmitted (used for calculus). |
| DataPerf::stop | ( | ) |
Stop measuring time.