Mantid
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
Mantid::Instrumentation::AlgoTimeRegister Class Reference

AlgoTimeRegister : simple class to dump information about executed algorithms. More...

#include <AlgoTimeRegister.h>

Classes

class  Dump
 
struct  Info
 

Public Member Functions

void addTime (const std::string &name, const Kernel::time_point_ns &begin, const Kernel::time_point_ns &end)
 
void addTime (const std::string &name, const std::thread::id thread_id, const Kernel::time_point_ns &begin, const Kernel::time_point_ns &end)
 
 AlgoTimeRegister ()
 
 ~AlgoTimeRegister ()
 

Static Public Attributes

static AlgoTimeRegister globalAlgoTimeRegister
 

Private Attributes

std::vector< Infom_info
 
std::mutex m_mutex
 
Kernel::time_point_ns m_start
 

Detailed Description

AlgoTimeRegister : simple class to dump information about executed algorithms.

Definition at line 22 of file AlgoTimeRegister.h.

Constructor & Destructor Documentation

◆ AlgoTimeRegister()

Mantid::Instrumentation::AlgoTimeRegister::AlgoTimeRegister ( )

Definition at line 38 of file AlgoTimeRegister.cpp.

◆ ~AlgoTimeRegister()

Mantid::Instrumentation::AlgoTimeRegister::~AlgoTimeRegister ( )

Definition at line 40 of file AlgoTimeRegister.cpp.

References m_info, m_start, and PARALLEL_GET_MAX_THREADS.

Member Function Documentation

◆ addTime() [1/2]

void Mantid::Instrumentation::AlgoTimeRegister::addTime ( const std::string &  name,
const Kernel::time_point_ns begin,
const Kernel::time_point_ns end 
)

Definition at line 33 of file AlgoTimeRegister.cpp.

References addTime().

◆ addTime() [2/2]

void Mantid::Instrumentation::AlgoTimeRegister::addTime ( const std::string &  name,
const std::thread::id  thread_id,
const Kernel::time_point_ns begin,
const Kernel::time_point_ns end 
)

Definition at line 28 of file AlgoTimeRegister.cpp.

References m_info.

Referenced by addTime().

Member Data Documentation

◆ globalAlgoTimeRegister

Instrumentation::AlgoTimeRegister Mantid::Instrumentation::AlgoTimeRegister::globalAlgoTimeRegister
static

Definition at line 24 of file AlgoTimeRegister.h.

◆ m_info

std::vector<Info> Mantid::Instrumentation::AlgoTimeRegister::m_info
private

Definition at line 55 of file AlgoTimeRegister.h.

Referenced by addTime(), and ~AlgoTimeRegister().

◆ m_mutex

std::mutex Mantid::Instrumentation::AlgoTimeRegister::m_mutex
private

Definition at line 54 of file AlgoTimeRegister.h.

◆ m_start

Kernel::time_point_ns Mantid::Instrumentation::AlgoTimeRegister::m_start
private

Definition at line 56 of file AlgoTimeRegister.h.

Referenced by ~AlgoTimeRegister().


The documentation for this class was generated from the following files: