table of contents
- bookworm 7.0.0-2
- testing 7.1.0-5+b1
- unstable 7.1.0-5+b1
- experimental 7.2.0~b1-2
PAPI_hl_region_begin(3) | PAPI | PAPI_hl_region_begin(3) |
NAME¶
PAPI_hl_region_begin - Read performance events at the beginning of a region.
SYNOPSIS¶
Detailed Description¶
C Interface:
int PAPI_hl_region_begin( const char* region );
Parameters
Return values
PAPI_ENOTRUN -- EventSet is currently not running or could not determined.
PAPI_ESYS -- A system or C library call failed inside PAPI, see the errno variable.
PAPI_EMISC -- PAPI has been deactivated due to previous errors.
PAPI_ENOMEM -- Insufficient memory.
PAPI_hl_region_begin reads performance events and stores them internally at the beginning of an instrumented code region. If not specified via the environment variable PAPI_EVENTS, default events are used. The first call sets all counters implicitly to zero and starts counting. Note that if PAPI_EVENTS is not set or cannot be interpreted, default performance events are recorded.
Example:
export PAPI_EVENTS="PAPI_TOT_INS,PAPI_TOT_CYC"
int retval; retval = PAPI_hl_region_begin("computation"); if ( retval != PAPI_OK )
handle_error(1);
//Do some computation here retval = PAPI_hl_region_end("computation"); if ( retval != PAPI_OK )
handle_error(1);
See also
PAPI_hl_region_end
PAPI_hl_stop
Author¶
Generated automatically by Doxygen for PAPI from the source code.
Fri Aug 30 2024 19:06:49 | Version 7.2.0.0b1 |