#include <rw/rwtest/perf/RWQEPerfTestResult.h>
RWQEPerfTestResult encapsulates the results of a single test iteration.
RWQEPerfTestResult::RWQEPerfTestResult |
( |
unsigned long |
thread, |
|
|
int64_t |
iteration, |
|
|
uint64_t |
operationCount, |
|
|
uint64_t |
wallTime, |
|
|
uint64_t |
systemTime, |
|
|
uint64_t |
userTime, |
|
|
const std::string & |
error = "" |
|
) |
| |
|
inline |
Constructs an TestResult instance.
- Parameters
-
thread | An identifier for the thread that was executed. |
iteration | The iteration of the test this result is associated with. |
operationCount | The number of loops the test function was executed in the current iteration. |
wallTime | The elapsed wall clock time for the test iteration. |
systemTime | The elapsed system time for the test iteration. |
userTime | The elapsed user time for the test iteration. |
error | A string description of any errors that occurred during the test iteration. An empty string implies that no errors occurred. |
const std::string & RWQEPerfTestResult::getError |
( |
void |
| ) |
const |
|
inline |
The error message associated with this test iteration (if any). If no errors occurred, this function returns an empty string.
int64_t RWQEPerfTestResult::getIteration |
( |
| ) |
const |
|
inline |
The iteration this test result is associated with. A negative iteration indicates a warmup iteration.
uint64_t RWQEPerfTestResult::getOperationCount |
( |
| ) |
const |
|
inline |
The number of loops the test function was executed in the current iteration.
uint64_t RWQEPerfTestResult::getSystemTime |
( |
| ) |
const |
|
inline |
The elapsed system time for this test iteration.
unsigned long RWQEPerfTestResult::getThread |
( |
| ) |
const |
|
inline |
The thread identifier associated with this test result.
uint64_t RWQEPerfTestResult::getUserTime |
( |
| ) |
const |
|
inline |
The elapsed user time for this test iteration.
uint64_t RWQEPerfTestResult::getWallTime |
( |
| ) |
const |
|
inline |
The elapsed wall clock time for this test iteration.