|
PAPI
5.0.1.0
|
disables the specified component More...
| ENOCMP | component does not exist |
| ENOINIT | cannot disable as PAPI has already been initialized |
| cidx | component index of component to be disabled |
int cidx, result; cidx = PAPI_get_component_index("example"); if (cidx>=0) { result = PAPI_disable_component(cidx); if (result==PAPI_OK) printf("The example component is disabled\n"); } // ... PAPI_library_init();
PAPI_disable_component() must be called before PAPI_library_init().