PAPI  5.3.2.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
PAPI_disable_component_by_name Class Reference

disables the named component More...

Detailed Description

\retval ENOCMP
    component does not exist
\retval ENOINIT
    unable to disable the component, the library has already been initialized
\param component_name
    name of the component to disable.
\par Example:
int result;
result = PAPI_disable_component_by_name("example");
if (result==PAPI_OK)
printf("component \"example\" has been disabled\n");
//...
*

PAPI_disable_component_by_name() allows the user to disable a component before PAPI_library_init() time. This is useful if the user knows they do not with to use events from that component and want to reduce the PAPI library overhead.

PAPI_disable_component_by_name() must be called before PAPI_library_init().

Bug:
none known
See Also
PAPI_library_init
PAPI_disable_component

The documentation for this class was generated from the following file: