Markers for categorizing performance measurements.
More...
|
enum class | detail |
| used for specifying what detail of annotations to collect. More...
|
|
|
template<class reg > |
std::enable_if_t< std::is_base_of< context< typename reg::outer_context >, typename reg::outer_context >::value > | begin () |
| Tag beginning of code region with caliper annotation.
|
|
template<class ctx , detail severity> |
std::enable_if_t< std::is_base_of< context< ctx >, ctx >::value > | begin (const char *region_name) |
| Tag beginning of a code region with runtime name.
|
|
template<class reg > |
std::enable_if_t< std::is_base_of< context< typename reg::outer_context >, typename reg::outer_context >::value &&std::is_base_of< execute_task< reg >, reg >::value > | begin (std::string_view task_name) |
| Tag beginning of an execute_task region.
|
|
template<class ctx , detail severity> |
std::enable_if_t< std::is_base_of< context< ctx >, ctx >::value > | end () |
| Tag end of a named code region.
|
|
template<class reg > |
std::enable_if_t< std::is_base_of< context< typename reg::outer_context >, typename reg::outer_context >::value > | end () |
| Tag end of code region using a region type.
|
|
Markers for categorizing performance measurements.
This utility provides an interface to the Caliper source-code annotation API. Regions of code are marked and annotations are recorded in Caliper depending on the CALIPER_DETAIL
CMake option. Caliper's runtime configuration can then be used to control performance measurement and collection for the annotations.
◆ detail
used for specifying what detail of annotations to collect.
◆ begin() [1/3]
template<class ctx ,
detail severity>
std::enable_if_t< std::is_base_of< context< ctx >, ctx >::value > begin |
( |
const char * |
region_name | ) |
|
Tag beginning of a code region with runtime name.
This is used to mark code regions with a name at runtime in contrast to using a region type.
- Template Parameters
-
ctx | annotation context for named code region. |
detail | severity detail level to use for code region. |
- Deprecated:
- Use guard.
◆ begin() [2/3]
template<class reg >
std::enable_if_t< std::is_base_of< context< typename reg::outer_context >, typename reg::outer_context >::value > begin |
( |
| ) |
|
Tag beginning of code region with caliper annotation.
The region is only tagged if caliper is enabled and reg::detail_level is compatible with the current annotation detail level.
- Template Parameters
-
- Deprecated:
- Use rguard.
◆ begin() [3/3]
template<class reg >
std::enable_if_t< std::is_base_of< context< typename reg::outer_context >, typename reg::outer_context >::value && std::is_base_of< execute_task< reg >, reg >::value > begin |
( |
std::string_view |
task_name | ) |
|
Tag beginning of an execute_task region.
The execute_task region has multiple phases and is associated with a named task.
- Template Parameters
-
reg | code region to tag (must inherit from annotation::execute_task). |
- Parameters
-
task_name | name of task to tag. |
- Deprecated:
- Use rguard.
◆ end() [1/2]
template<class ctx ,
detail severity>
std::enable_if_t< std::is_base_of< context< ctx >, ctx >::value > end |
( |
| ) |
|
Tag end of a named code region.
This is used for runtime named code regions (in contrast using region types).
- Template Parameters
-
ctx | annotation context for named code region. |
detail | severity detail level to use for code region. |
- Deprecated:
- Use guard.
◆ end() [2/2]
template<class reg >
std::enable_if_t< std::is_base_of< context< typename reg::outer_context >, typename reg::outer_context >::value > end |
( |
| ) |
|
Tag end of code region using a region type.
The region is only tagged if caliper is enabled and reg::detail_level is compatible with the current annotation detail level.
- Template Parameters
-
- Deprecated:
- Use rguard.