-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathPerformanceBenchmarkingUtilities.h
More file actions
39 lines (31 loc) · 1.42 KB
/
PerformanceBenchmarkingUtilities.h
File metadata and controls
39 lines (31 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// Created by Hans J. Johnson on 2/19/18.
//
#ifndef PerformanceBenchmarkingUtilities_h
#define PerformanceBenchmarkingUtilities_h
#include "PerformanceBenchmarkingInformation.h"
#include "jsonxx.h"
#include <ctime> //TODO: Move to utiliites
#include "itkHighPriorityRealTimeProbesCollector.h"
#if ITK_VERSION_MAJOR < 5 || defined(ITK_USES_NUMBEROFTHREADS)
#include "itkMultiThreader.h"
using MultiThreaderName = itk::MultiThreader;
#define SET_PARALLEL_UNITS( x ) SetNumberOfThreads( x )
#else
#include "itkMultiThreaderBase.h"
using MultiThreaderName = itk::MultiThreaderBase;
#define SET_PARALLEL_UNITS( x ) SetNumberOfWorkUnits( x )
#endif
PerformanceBenchmarking_EXPORT std::string
PerfDateStamp();
PerformanceBenchmarking_EXPORT std::string
ReplaceOccurrence(std::string str, const std::string && findvalue, const std::string && replacevalue);
PerformanceBenchmarking_EXPORT std::string
DecorateWithBuildInformation(std::string inputJson);
PerformanceBenchmarking_EXPORT void
WriteExpandedReport(const std::string & timingsFileName,
itk::HighPriorityRealTimeProbesCollector & collector,
bool printSystemInfo,
bool printReportHead,
bool useTabs);
#endif