23 size_t addFunction(
const std::string & name,
size_t nbThread = 1lu);
24 void rename(
size_t index,
const std::string & name);
25 void start(
size_t index,
size_t threadIndex = 0lu);
26 void stop(
size_t index,
size_t threadIndex = 0lu);
27 void reset(
size_t index,
size_t threadIndex = 0lu);
30 void print(std::ostream & out = std::cout)
const;
33 void printCsv(std::ostream & out = std::cout)
const;
std::vector< PFunctionPerf > PVecFunctionPerf
void initialisationPProfiler()
Initialisation function of the class PProfiler.
void printCsvHeader(std::ostream &out=std::cout) const
Print header of all the PFunctionPerf of the PProfiler in CSV format.
void start(size_t index, size_t threadIndex=0lu)
Start the given PFunctionPerf.
PProfiler()
Default constructor of PProfiler.
void print(std::ostream &out=std::cout) const
Print all the PFunctionPerf of the PProfiler.
void printCsv(std::ostream &out=std::cout) const
Print all the PFunctionPerf of the PProfiler in CSV format.
void copyPProfiler(const PProfiler &other)
Copy function of PProfiler.
void rename(size_t index, const std::string &name)
Rename a function.
PProfiler & operator=(const PProfiler &other)
Definition of equal operator of PProfiler.
virtual ~PProfiler()
Destructor of PProfiler.
size_t addFunction(const std::string &name, size_t nbThread=1lu)
Add a function to profile.
void reset()
Reset all the function perf.
PVecFunctionPerf p_vecFunctionPerf
Vector of performances for all registered functions.
void stop(size_t index, size_t threadIndex=0lu)
Stop the given PFunctionPerf.