71 static inline SP::CORE_Thread
New() {
186 const tBoolean& isCallsNumberIncremented);
virtual tUInteger getMaxThreadsNumber() const
get the max number of threads
Definition: CORE_Thread.h:111
map< tString, tULLInt > * mTimes
Definition: CORE_Thread.h:35
CORE_Thread(void)
create an object
Definition: CORE_Thread.cpp:4
This class describes a program routine analyser.
Definition: CORE_Thread.h:20
#define tLDouble
Definition: types.h:54
#define tUInteger
Definition: types.h:91
this class describes a time class
Definition: CORE_Time.h:64
virtual tULLInt getDuration(const tULLInt &startChrono) const
get duration in milliseconds
Definition: CORE_Thread.h:135
#define tBoolean
Definition: types.h:139
void stopChrono(const tString &method)
stop the chrono in the method
Definition: CORE_Thread.h:162
tLDouble getChrono(const tString &method)
get the time spent in the method
Definition: CORE_Thread.cpp:127
void startChrono(const tString &method)
start chrono at the method method
Definition: CORE_Thread.h:144
static SP::CORE_Thread New()
create an instance of thread
Definition: CORE_Thread.h:71
map< tString, tUInteger > * mCallsNumber
Definition: CORE_Thread.h:41
map< tString, tULLInt > * mStepTimes
Definition: CORE_Thread.h:38
tString profiling()
make the profiling
Definition: CORE_Thread.cpp:152
tUInteger mThreadsNumber
Definition: CORE_Thread.h:27
void stopChrono(const tUIndex &id, const tString &method)
stop chrono of the method name in process id
Definition: CORE_Thread.h:173
virtual ~CORE_Thread(void)
destroy an object.
Definition: CORE_Thread.cpp:15
#define tUIndex
Definition: types.h:126
tBoolean mIsProfiling
Definition: CORE_Thread.h:26
abstract base class for most classes.
Definition: CORE_Object.h:53
#define tString
Definition: types.h:135
virtual tULLInt getTime() const
get time
Definition: CORE_Thread.h:129
tUInteger getCallsNumber(const tString &method)
get the number of calls of method
Definition: CORE_Thread.cpp:140
const tBoolean & isProfiling() const
return true if the code is profiling
Definition: CORE_Thread.h:117
virtual tBoolean isOpenMPMultiThreaded() const
return true if the program is multithreaded by OpenMP
Definition: CORE_Thread.h:83
virtual tUInteger getThreadsNumber() const
get the threads number
Definition: CORE_Thread.h:105
static tULLInt getClockTime()
Definition: CORE_Time.h:621
virtual void setThreadsNumber(const tUIndex &nThreads, const tBoolean &isProfiling)
set the number of threads
Definition: CORE_Thread.cpp:26
virtual tUInteger getThreadId() const
get the thread id
Definition: CORE_Thread.h:89
#define tULLInt
Definition: types.h:45
CORE_Time mTime
Definition: CORE_Thread.h:32
static tULLInt getClockDuration(const tULLInt &startTime)
Definition: CORE_Time.h:628
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141