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

GGEMS class handling a specific profiler type. More...

#include "GGEMSProfiler.hh"

Collaboration diagram for GGEMSProfiler:
Collaboration graph

Public Member Functions

 GGEMSProfiler (void)
 GGEMSProfiler constructor. More...
 
 ~GGEMSProfiler (void)
 GGEMSProfiler destructor. More...
 
void HandleEvent (cl::Event event)
 handle an OpenCL event in profile_name type More...
 
DurationNano GetSummaryTime (void) const
 get elapsed time in ns in OpenCL operation More...
 

Private Member Functions

void AddProfilerItem (cl_event event)
 add new profiler item in profile More...
 

Static Private Member Functions

static void CallBackFunction (cl_event event, GGint event_command_exec_status, void *user_data)
 call back function analyzing event More...
 

Private Attributes

GGEMSProfilerItemprofiler_item_
 

Detailed Description

GGEMS class handling a specific profiler type.

Definition at line 40 of file GGEMSProfiler.hh.

Constructor & Destructor Documentation

◆ GGEMSProfiler()

GGEMSProfiler::GGEMSProfiler ( void  )

GGEMSProfiler constructor.

Definition at line 38 of file GGEMSProfiler.cc.

◆ ~GGEMSProfiler()

GGEMSProfiler::~GGEMSProfiler ( void  )

GGEMSProfiler destructor.

Definition at line 48 of file GGEMSProfiler.cc.

Member Function Documentation

◆ AddProfilerItem()

void GGEMSProfiler::AddProfilerItem ( cl_event  event)
private

add new profiler item in profile

Parameters
event- event to profile

Definition at line 76 of file GGEMSProfiler.cc.

◆ CallBackFunction()

void GGEMSProfiler::CallBackFunction ( cl_event  event,
GGint  event_command_exec_status,
void *  user_data 
)
staticprivate

call back function analyzing event

Parameters
event- OpenCL event
event_command_exec_status- status of OpenCL event
user_data- adress of GGEMSProfiler object

Definition at line 60 of file GGEMSProfiler.cc.

◆ GetSummaryTime()

DurationNano GGEMSProfiler::GetSummaryTime ( void  ) const
inline

get elapsed time in ns in OpenCL operation

Returns
elapsed time in ns

Definition at line 65 of file GGEMSProfiler.hh.

◆ HandleEvent()

void GGEMSProfiler::HandleEvent ( cl::Event  event)

handle an OpenCL event in profile_name type

Parameters
event- OpenCL event

Definition at line 90 of file GGEMSProfiler.cc.

Member Data Documentation

◆ profiler_item_

GGEMSProfilerItem* GGEMSProfiler::profiler_item_
private

Buffer storing profiling data of same type

Definition at line 85 of file GGEMSProfiler.hh.


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