80 Cerr(
"***** sChronoManager::CheckParameters() -> Number of threads for projections is incorrectly set !" << endl);
85 Cerr(
"***** sChronoManager::CheckParameters() -> Number of threads for image computation is incorrectly set !" << endl);
91 Cerr(
"***** sChronoManager::CheckParameters() -> Number of custom steps is incorrectly set !" << endl);
97 Cerr(
"***** sChronoManager::CheckParameters() -> Verbose cannot be negative !" << endl);
140 for (
int th=0; th<m_nbThreadsMax; th++) mpp_durationCustomSteps[nb][th] = chrono::duration<int64_t,nano>::zero();
157 Cout(
"sChronoManager::Display() -> Results from the profiling" << endl);
175 Cout(
" --> Profiling of the data update step:" << endl);
176 Cout(
" | Datafile management: " << setfill(
'0' )
181 Cout(
" | Dynamic management: " << setfill(
'0' )
186 Cout(
" | Projection management: " << setfill(
'0' )
191 Cout(
" | Optimizer management: " << setfill(
'0' )
197 Cout(
" --> Profiling of the convolution steps: " << setfill(
'0' )
205 Cout(
" --> Custom update step " << nb+1 <<
": " << setfill(
'0' )
ChronoTime * mp_startIterativeDataUpdateStep3
int m_nbThreadsForImageComputation
int CheckParameters()
Check validity of all parameters.
std::chrono::seconds Secs
sChronoManager()
The constructor of sChronoManager.
DurationNano * mp_durationIterativeDataUpdateStep2
std::chrono::time_point< std::chrono::system_clock > ChronoTime
std::chrono::duration< int64_t, std::nano > DurationNano
std::chrono::minutes Mins
ChronoTime ** mpp_startCustomSteps
ChronoTime * mp_startIterativeDataUpdateStep4
DurationNano m_durationConvolution
static sChronoManager * mp_Instance
DurationNano * mp_durationIterativeDataUpdateStep1
DurationNano * mp_durationIterativeDataUpdateStep3
DurationNano * mp_durationIterativeDataUpdateStep4
int m_nbThreadsForProjection
int Initialize()
Initialize all thread-safe buffers for profiling.
ChronoTime * mp_startIterativeDataUpdateStep1
Declaration of class sChronoManager.
DurationNano ** mpp_durationCustomSteps
This class is designed to manage some profiling of the code.
ChronoTime * mp_startIterativeDataUpdateStep2
void Display()
Display the results of the duration buffers.