DFT-EFE
 
Loading...
Searching...
No Matches
dftefe::utils::Profiler< memorySpace > Class Template Reference

#include <Profiler.h>

Collaboration diagram for dftefe::utils::Profiler< memorySpace >:

Classes

struct  Section
 

Public Member Functions

 Profiler (const std::string &profileName="")
 
 Profiler (const mpi::MPIComm &mpiComm, const std::string &profileName="")
 
 Profiler (const mpi::MPIComm &mpiComm, const ConditionalOStream &stream, const std::string &profileName="")
 
 ~Profiler ()
 
void registerStart (const std::string &sectionName)
 
void registerEnd (const std::string &sectionName="")
 
void print () const
 
Timer getSectionTimer (const std::string &sectionName) const
 
double getSectionTotalWallTime (const std::string &sectionName) const
 
size_type getSectionCalls (const std::string &sectionName) const
 
void reset ()
 

Private Attributes

std::map< std::string, Sectiond_SectionsMap
 
std::vector< std::string > d_insertionOrder
 
std::list< std::string > d_activeSections
 
ConditionalOStream d_stream
 
const mpi::MPIComm d_mpiComm
 
Timer d_totalTime
 
std::string d_profileName
 

Constructor & Destructor Documentation

◆ Profiler() [1/3]

template<dftefe::utils::MemorySpace memorySpace>
dftefe::utils::Profiler< memorySpace >::Profiler ( const std::string &  profileName = "")

◆ Profiler() [2/3]

template<dftefe::utils::MemorySpace memorySpace>
dftefe::utils::Profiler< memorySpace >::Profiler ( const mpi::MPIComm mpiComm,
const std::string &  profileName = "" 
)
Here is the call graph for this function:

◆ Profiler() [3/3]

template<dftefe::utils::MemorySpace memorySpace>
dftefe::utils::Profiler< memorySpace >::Profiler ( const mpi::MPIComm mpiComm,
const ConditionalOStream stream,
const std::string &  profileName = "" 
)

◆ ~Profiler()

template<dftefe::utils::MemorySpace memorySpace>
dftefe::utils::Profiler< memorySpace >::~Profiler

Member Function Documentation

◆ getSectionCalls()

template<dftefe::utils::MemorySpace memorySpace>
size_type dftefe::utils::Profiler< memorySpace >::getSectionCalls ( const std::string &  sectionName) const

◆ getSectionTimer()

template<dftefe::utils::MemorySpace memorySpace>
Timer dftefe::utils::Profiler< memorySpace >::getSectionTimer ( const std::string &  sectionName) const

◆ getSectionTotalWallTime()

template<dftefe::utils::MemorySpace memorySpace>
double dftefe::utils::Profiler< memorySpace >::getSectionTotalWallTime ( const std::string &  sectionName) const

◆ print()

template<dftefe::utils::MemorySpace memorySpace>
void dftefe::utils::Profiler< memorySpace >::print
Here is the caller graph for this function:

◆ registerEnd()

template<dftefe::utils::MemorySpace memorySpace>
void dftefe::utils::Profiler< memorySpace >::registerEnd ( const std::string &  sectionName = "")
Here is the caller graph for this function:

◆ registerStart()

template<dftefe::utils::MemorySpace memorySpace>
void dftefe::utils::Profiler< memorySpace >::registerStart ( const std::string &  sectionName)
Here is the caller graph for this function:

◆ reset()

template<dftefe::utils::MemorySpace memorySpace>
void dftefe::utils::Profiler< memorySpace >::reset

Member Data Documentation

◆ d_activeSections

template<dftefe::utils::MemorySpace memorySpace>
std::list<std::string> dftefe::utils::Profiler< memorySpace >::d_activeSections
private

◆ d_insertionOrder

template<dftefe::utils::MemorySpace memorySpace>
std::vector<std::string> dftefe::utils::Profiler< memorySpace >::d_insertionOrder
private

◆ d_mpiComm

template<dftefe::utils::MemorySpace memorySpace>
const mpi::MPIComm dftefe::utils::Profiler< memorySpace >::d_mpiComm
private

◆ d_profileName

template<dftefe::utils::MemorySpace memorySpace>
std::string dftefe::utils::Profiler< memorySpace >::d_profileName
private

◆ d_SectionsMap

template<dftefe::utils::MemorySpace memorySpace>
std::map<std::string, Section> dftefe::utils::Profiler< memorySpace >::d_SectionsMap
private

◆ d_stream

template<dftefe::utils::MemorySpace memorySpace>
ConditionalOStream dftefe::utils::Profiler< memorySpace >::d_stream
private

◆ d_totalTime

template<dftefe::utils::MemorySpace memorySpace>
Timer dftefe::utils::Profiler< memorySpace >::d_totalTime
private

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