43 opencl_manager.
CheckOpenCLError(clGetEventProfilingInfo(event, CL_PROFILING_COMMAND_START,
sizeof(
GGulong), &
times_[GGEMSEventInfo::START],
nullptr),
"GGEMSProfilerItem",
"GGEMSProfilerItem");
44 opencl_manager.
CheckOpenCLError(clGetEventProfilingInfo(event, CL_PROFILING_COMMAND_END,
sizeof(
GGulong), &
times_[GGEMSEventInfo::END],
nullptr),
"GGEMSProfilerItem",
"GGEMSProfilerItem");
46 times_[GGEMSEventInfo::ELAPSED] =
times_[GGEMSEventInfo::END] -
times_[GGEMSEventInfo::START];
57 opencl_manager.
CheckOpenCLError(clGetEventProfilingInfo(event, CL_PROFILING_COMMAND_START,
sizeof(
GGulong), &
times_[GGEMSEventInfo::START],
nullptr),
"GGEMSProfilerItem",
"UpdateEvent");
58 opencl_manager.
CheckOpenCLError(clGetEventProfilingInfo(event, CL_PROFILING_COMMAND_END,
sizeof(
GGulong), &
times_[GGEMSEventInfo::END],
nullptr),
"GGEMSProfilerItem",
"UpdateEvent");
59 times_[GGEMSEventInfo::ELAPSED] +=
times_[GGEMSEventInfo::END] -
times_[GGEMSEventInfo::START];