PAPI_accum_counters(3) | PAPI | PAPI_accum_counters(3) |
PAPI_accum_counters -
Accumulate and reset counters.
@par C Interface: int PAPI_accum_counters( long long *values, int array_len );
Parameters:
Precondition:
Postcondition:
Return values:
PAPI_accum_counters() adds the event counters into the array *values.
do_100events(); if ( PAPI_read_counters( values, num_hwcntrs ) != PAPI_OK )
handlw_error(1); // values[0] now equals 100 do_100events(); if ( PAPI_accum_counters( values, num_hwcntrs ) != PAPI_OK )
handle_error(1); // values[0] now equals 200 values[0] = -100; do_100events(); if ( PAPI_accum_counters(values, num_hwcntrs ) != PAPI_OK )
handle_error(); // values[0] now equals 0
*
See Also:
Generated automatically by Doxygen for PAPI from the source code.
Fri Feb 22 2019 | Version 5.7.0.0 |