SPH
Public Member Functions | Static Public Member Functions | List of all members
Session Class Reference

#include <Session.h>

Public Member Functions

 Session ()
 
void registerBenchmark (const SharedPtr< Unit > &benchmark, const std::string &groupName)
 Adds a new benchmark into the session. More...
 
void run (int argc, char *argv[])
 Runs all benchmarks. More...
 
 ~Session ()
 

Static Public Member Functions

static SessiongetInstance ()
 

Detailed Description

Definition at line 237 of file Session.h.

Constructor & Destructor Documentation

◆ Session()

NAMESPACE_BENCHMARK_BEGIN Session::Session ( )

Definition at line 9 of file Session.cpp.

◆ ~Session()

Session::~Session ( )
default

Member Function Documentation

◆ getInstance()

Session & Session::getInstance ( )
static

Definition at line 19 of file Session.cpp.

◆ registerBenchmark()

void Session::registerBenchmark ( const SharedPtr< Unit > &  benchmark,
const std::string &  groupName 
)

Adds a new benchmark into the session.

Definition at line 26 of file Session.cpp.

◆ run()

void Session::run ( int  argc,
char *  argv[] 
)

Runs all benchmarks.

Definition at line 38 of file Session.cpp.

Member Data Documentation

◆ 

struct { ... } Session::baseline

◆ benchmarksToRun

Array<std::string> Session::benchmarksToRun

Definition at line 273 of file Session.h.

◆ commit

Size Session::commit = 0

Definition at line 270 of file Session.h.

◆ confidence

Float Session::confidence = 6._f

Definition at line 277 of file Session.h.

◆ flags

Flags<Flag> Session::flags

Definition at line 266 of file Session.h.

◆ group

std::string Session::group

Run only selected group of benchmarks.

Definition at line 264 of file Session.h.

◆ maxAllowedDuration

uint64_t Session::maxAllowedDuration = 5000

Maximum allowed duration of single benchmark unit; benchmarks running longer that that will generate a warning.

Definition at line 281 of file Session.h.

◆ path

Path Session::path

Definition at line 269 of file Session.h.

◆ target

Target Session::target { Mode::SIMPLE, 500 , 10 }

Definition at line 275 of file Session.h.


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