SourcePro® C++ 2016 |
SourcePro® C++ API Reference Guide |
Product Documentation: SourcePro C++ Documentation Home |
#include <rw/rwtest/perf/RWQEPerfTest.h>
Public Member Functions | |
RWQEPerfTestSuite (const std::string &desc, const H &handler=H(), std::function< void(std::string &)> exceptionHandler=rwqeExceptionMessageHandler) | |
~RWQEPerfTestSuite () | |
const std::string & | getDescription () const |
template<typename T > | |
void | run (const RWQEDynamicPerfTestDef &def, T test) |
RWQEPerfTestSuite encapsulates a performance tests suite. It is responsible for associating a Result Handler and a RWQEPerfTestRunner with each test object, based on the test definition provided.
|
inline |
Constructs the TestSuite with the specified result handler handler.
desc | A description of the test. |
handler | Function to handle result reporting. |
exceptionHandler | Function to invoke when an exception occurs. |
|
inline |
Destructor.
const std::string& RWQEPerfTestSuite< H >::getDescription | ( | ) | const |
The description of the test suite.
void RWQEPerfTestSuite< H >::run | ( | const RWQEDynamicPerfTestDef & | def, |
T | test | ||
) |
Runs the test object test given the test definition def. This function evaluates the number of threads requested, and either spawns that number of threads, or if threads < 1 runs the test in the current thread. It also dynamically determines an approximate number of operations that should be executed to hit the target execution time.
Copyright © 2016 Rogue Wave Software, Inc. All Rights Reserved. |