Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Static Protected Member Functions | Friends | List of all members
perf::TestBase Class Referenceabstract

#include <ts_perf.hpp>

Inherits testing::Test.

Inherited by perf::TestBaseWithParam< T >.

Classes

class  PerfSkipTestException
 

Public Types

typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef
internal::TearDownTestCaseFunc 
TearDownTestCaseFunc
 

Public Member Functions

 TestBase ()
 
void setVerified ()
 

Static Public Member Functions

static void Init (int argc, const char *const argv[])
 
static void Init (const std::vector< std::string > &availableImpls, int argc, const char *const argv[])
 
static void RecordRunParameters ()
 
static std::string getDataPath (const std::string &relativePath)
 
static std::string getSelectedImpl ()
 
static enum PERF_STRATEGY getPerformanceStrategy ()
 
static enum PERF_STRATEGY setPerformanceStrategy (enum PERF_STRATEGY strategy)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 

Public Attributes

_declareHelper declare
 

Protected Types

enum  { WARMUP_READ, WARMUP_WRITE, WARMUP_RNG, WARMUP_NONE }
 

Protected Member Functions

virtual void PerfTestBody ()=0
 
virtual void SetUp ()
 
virtual void TearDown ()
 
void startTimer ()
 
void stopTimer ()
 
bool next ()
 
void reportMetrics (bool toJUnitXML=false)
 
performance_metricscalcMetrics ()
 
void RunPerfTestBody ()
 

Static Protected Member Functions

static void warmup (cv::InputOutputArray a, int wtype=WARMUP_READ)
 

Friends

class _declareHelper
 

Member Typedef Documentation

typedef internal::SetUpTestCaseFunc testing::Test::SetUpTestCaseFunc
inherited
typedef internal::TearDownTestCaseFunc testing::Test::TearDownTestCaseFunc
inherited

Member Enumeration Documentation

anonymous enum
protected
Enumerator
WARMUP_READ 
WARMUP_WRITE 
WARMUP_RNG 
WARMUP_NONE 

Constructor & Destructor Documentation

perf::TestBase::TestBase ( )

Member Function Documentation

static void perf::TestBase::Init ( int  argc,
const char *const  argv[] 
)
static
static void perf::TestBase::Init ( const std::vector< std::string > &  availableImpls,
int  argc,
const char *const  argv[] 
)
static
static void perf::TestBase::RecordRunParameters ( )
static
static std::string perf::TestBase::getDataPath ( const std::string relativePath)
static
static std::string perf::TestBase::getSelectedImpl ( )
static
static enum PERF_STRATEGY perf::TestBase::getPerformanceStrategy ( )
static
static enum PERF_STRATEGY perf::TestBase::setPerformanceStrategy ( enum PERF_STRATEGY  strategy)
static
virtual void perf::TestBase::PerfTestBody ( )
protectedpure virtual
virtual void perf::TestBase::SetUp ( )
protectedvirtual

Reimplemented from testing::Test.

virtual void perf::TestBase::TearDown ( )
protectedvirtual

Reimplemented from testing::Test.

void perf::TestBase::startTimer ( )
protected
void perf::TestBase::stopTimer ( )
protected
bool perf::TestBase::next ( )
protected
void perf::TestBase::reportMetrics ( bool  toJUnitXML = false)
protected
static void perf::TestBase::warmup ( cv::InputOutputArray  a,
int  wtype = WARMUP_READ 
)
staticprotected
performance_metrics& perf::TestBase::calcMetrics ( )
protected
void perf::TestBase::RunPerfTestBody ( )
protected
void perf::TestBase::setVerified ( )
static void testing::Test::SetUpTestCase ( )
staticinherited
static void testing::Test::TearDownTestCase ( )
staticinherited
static bool testing::Test::HasFatalFailure ( )
staticinherited
static bool testing::Test::HasNonfatalFailure ( )
staticinherited
static bool testing::Test::HasFailure ( )
staticinherited
static void testing::Test::RecordProperty ( const std::string key,
const std::string value 
)
staticinherited
static void testing::Test::RecordProperty ( const std::string key,
int  value 
)
staticinherited

Friends And Related Function Documentation

friend class _declareHelper
friend

Member Data Documentation

_declareHelper perf::TestBase::declare

The documentation for this class was generated from the following file: