Content  


Examples

In the following we describe the two basic methods of benchmarking provided with ViennaProfiler:

  • Either by running a black-box application from command line
  • or by injecting profiling statements directly in source-code.

Benchmarking at source code level is provided by the Profiler-class:

Profiler-class
  1. #include "viennaprofiler/profiler.hpp"
  2.  
  3. Profiler<MyDBImpl, MyTimerImpl> myProfiler(myDBImpl, myTimerImpl, "host")
  • myDBImpl...provides the connection to the database
  • myTimerImpl...provides time measurement functionality
  • "host"...has to be the host name of an existing host from the HOST-table