GGEMS  1.1
GPU GEant4-based Monte Carlo Simulations
GGEMSProfilerManager Class Reference

GGEMS class managing profiler data. More...

#include "GGEMSProfilerManager.hh"

Collaboration diagram for GGEMSProfilerManager:
Collaboration graph

Public Member Functions

 GGEMSProfilerManager (GGEMSProfilerManager const &profiler_manager)=delete
 Avoid copy of the class by reference. More...
 
GGEMSProfilerManageroperator= (GGEMSProfilerManager const &profiler_manager)=delete
 Avoid assignement of the class by reference. More...
 
 GGEMSProfilerManager (GGEMSProfilerManager const &&profiler_manager)=delete
 Avoid copy of the class by rvalue reference. More...
 
GGEMSProfilerManageroperator= (GGEMSProfilerManager const &&profiler_manager)=delete
 Avoid copy of the class by rvalue reference. More...
 
void HandleEvent (cl::Event event, std::string const &profile_name)
 handle an OpenCL event in profile_name type More...
 
void PrintSummaryProfile (void) const
 print summary profile More...
 
void Reset (void)
 reset all profile already registered More...
 
void Clean (void)
 clean OpenCL data More...
 

Static Public Member Functions

static GGEMSProfilerManagerGetInstance (void)
 Create at first time the Singleton. More...
 

Private Member Functions

 GGEMSProfilerManager (void)
 Unable the constructor for the user. More...
 
 ~GGEMSProfilerManager (void)
 Unable the destructor for the user. More...
 

Private Attributes

ProfilerUMap profilers_
 

Detailed Description

GGEMS class managing profiler data.

Definition at line 47 of file GGEMSProfilerManager.hh.

Constructor & Destructor Documentation

◆ GGEMSProfilerManager() [1/3]

GGEMSProfilerManager::GGEMSProfilerManager ( void  )
private

Unable the constructor for the user.

Definition at line 38 of file GGEMSProfilerManager.cc.

◆ ~GGEMSProfilerManager()

GGEMSProfilerManager::~GGEMSProfilerManager ( void  )
private

Unable the destructor for the user.

Definition at line 51 of file GGEMSProfilerManager.cc.

◆ GGEMSProfilerManager() [2/3]

GGEMSProfilerManager::GGEMSProfilerManager ( GGEMSProfilerManager const &  profiler_manager)
delete

Avoid copy of the class by reference.

Parameters
profiler_manager- reference on the profiler manager

◆ GGEMSProfilerManager() [3/3]

GGEMSProfilerManager::GGEMSProfilerManager ( GGEMSProfilerManager const &&  profiler_manager)
delete

Avoid copy of the class by rvalue reference.

Parameters
profiler_manager- rvalue reference on the profiler manager

Member Function Documentation

◆ Clean()

void GGEMSProfilerManager::Clean ( void  )

clean OpenCL data

Definition at line 64 of file GGEMSProfilerManager.cc.

◆ GetInstance()

static GGEMSProfilerManager & GGEMSProfilerManager::GetInstance ( void  )
inlinestatic

Create at first time the Singleton.

Returns
Object of type GGEMSProfilerManager

Definition at line 66 of file GGEMSProfilerManager.hh.

◆ HandleEvent()

void GGEMSProfilerManager::HandleEvent ( cl::Event  event,
std::string const &  profile_name 
)

handle an OpenCL event in profile_name type

Parameters
event- OpenCL event
profile_name- type of profile

Definition at line 75 of file GGEMSProfilerManager.cc.

◆ operator=() [1/2]

GGEMSProfilerManager & GGEMSProfilerManager::operator= ( GGEMSProfilerManager const &&  profiler_manager)
delete

Avoid copy of the class by rvalue reference.

Parameters
profiler_manager- rvalue reference on the profiler manager

◆ operator=() [2/2]

GGEMSProfilerManager & GGEMSProfilerManager::operator= ( GGEMSProfilerManager const &  profiler_manager)
delete

Avoid assignement of the class by reference.

Parameters
profiler_manager- reference on the profiler manager

◆ PrintSummaryProfile()

void GGEMSProfilerManager::PrintSummaryProfile ( void  ) const

print summary profile

Definition at line 95 of file GGEMSProfilerManager.cc.

◆ Reset()

void GGEMSProfilerManager::Reset ( void  )

reset all profile already registered

Definition at line 104 of file GGEMSProfilerManager.cc.

Member Data Documentation

◆ profilers_

ProfilerUMap GGEMSProfilerManager::profilers_
private

Map storing all types of profiles

Definition at line 127 of file GGEMSProfilerManager.hh.


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