IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
BenchmarkUtils.h
1 // BenchmarkUtils.h:
3 // -----------------
4 //
14 
15 #ifndef __BENCHMARKTOOLS_BENCHMARKUTILS_H__
16 #define __BENCHMARKTOOLS_BENCHMARKUTILS_H__
17 
20 #include <boost/date_time/posix_time/posix_time_duration.hpp>
21 #include <boost/filesystem/path.hpp>
22 
23 namespace ipsdk {
24 namespace bench {
25 
26 class BenchmarkInfo;
27 
30 
32 IPSDKBENCHMARKTOOLS_API boost::filesystem::path
34 
37 initBenchmarck(const std::string& benchmarkName);
38 
41 addBenchResult(const std::string& benchInfoStr, double duration);
42 
46 
50  const std::string& ipAddress,
51  unsigned short nPortNumber,
52  BenchmarkInfo& remoteBenchmarkInfo,
53  const boost::posix_time::time_duration& expiryDuration
54 );
55 
58 waitForRemoteBenchmarkInfoRequest(unsigned short nPortNumber);
59 
62 
63 } // end of namespace bench
64 } // end of namespace ipsdk
65 
66 #endif // __BENCHMARKTOOLS_BENCHMARKUTILS_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
IPSDKBENCHMARKTOOLS_API BoolResult requestRemoteBenchmarkInfo(const std::string &ipAddress, unsigned short nPortNumber, BenchmarkInfo &remoteBenchmarkInfo, const boost::posix_time::time_duration &expiryDuration)
function reading a BenchmarkInfo from a remote machine through sockets
IPSDKBENCHMARKTOOLS_API void waitForRemoteBenchmarkInfoRequest(unsigned short nPortNumber)
function sending a BenchmarkInfo to a remote machine through sockets
IPSDKBENCHMARKTOOLS_API void initBenchmarck(const std::string &benchmarkName)
function allowing to initialize library benchmark
IPSDKBENCHMARKTOOLS_API void endBenchmarck()
function allowing to end library benchmark
ProcessingResult< bool > BoolResult
typedef for boolean results associated to a string description
Definition: ProcessingResultTypes.h:29
#define IPSDKBENCHMARKTOOLS_API
Import/Export macro for library IPSDKBenchmarkTools.
Definition: IPSDKBenchmarkToolsExports.h:25
Predefined types for processing results management.
IPSDKBENCHMARKTOOLS_API boost::filesystem::path getBenchOutputDir()
function allowing to retrieve benchmark output directory
Definition of import/export macro for library.
IPSDKBENCHMARKTOOLS_API void addBenchResult(const std::string &benchInfoStr, double duration)
function allowing to add a benchmark result