Using custom Writers and Timers
If the supplemented classes for use as MyDBImpl and MyTimerImpl are not sufficient, a guide for own implementations is given.
MyDBImpl
MyDBImpl needs two member functions. The first reads a host from the database and the second stores a test and its associated parameters in the database.
Custom Writer
class MyDBImpl { public: // Reads a host from the HOST-table with the given HostName const viennaprofiler::Host getHost(std::string hostName) {...} // Inserts the given benchmark and the given parameters in // the TEST-table respectively the PARAMETER-table void insertTest(Benchmark const & test, std::vector<Parameter> parameters) {...} };
MyTimerImpl
The concept for MyTimerImpl requires three member-functions. The first one to start the timer, the second one to stop the timer and the last one to acquire the elapsed time.
Custom Timer
class MyTimerImpl { public: // Starts the timer void start() {...} // Stops the timer void stop() {...} // Gives the elapsed time between start() and stop() in "seconds" double elapsed() const {...} };