cuda-api-wrappers
Thin C++-flavored wrappers for the CUDA Runtime API
cuda::profiling::mark Namespace Reference

definitions related to marking individual time points in the profiler timeline More...

Functions

template<typename CharT >
void point (const CharT *description, color_t color=color_t::Black())
 Mark a single point on the profiler timeline, giving it also a color and some descriptive text.
 
template<typename CharT >
range::handle_t range_start (const CharT *description, range::type_t type=range::type_t::unspecified, color_t color=color_t::LightRed())
 Mark the beginning of a range on the profiler timeline, giving it also a color and some descriptive text. More...
 
void range_end (range::handle_t range_handle)
 Mark the end of a range, using the handle obtained when previously marking its beginning. More...
 

Detailed Description

definitions related to marking individual time points in the profiler timeline

Function Documentation

◆ range_end()

void cuda::profiling::mark::range_end ( range::handle_t  range_handle)
inline

Mark the end of a range, using the handle obtained when previously marking its beginning.

◆ range_start()

template<typename CharT >
range::handle_t cuda::profiling::mark::range_start ( const CharT *  description,
range::type_t  type = range::type_t::unspecified,
color_t  color = color_t::LightRed() 
)

Mark the beginning of a range on the profiler timeline, giving it also a color and some descriptive text.

Parameters
typethe range type - an unused parameter
Returns
a handle representing the range, which can be used to mark its endpoint