logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

PAPI_disable_component - disables the specified component

Author

       Generated automatically by Doxygen for PAPI from the source code.

Version 7.1.0.0                                  Thu Dec 14 2023                       PAPI_disable_component(3)

Detailed Description

ReturnvaluesENOCMP component does not exist
           ENOINIT cannot disable as PAPI has already been initialized

       Parameterscidx component index of component to be disabled

       Examples:

           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() allows the user to disable components before PAPI_library_init() time. This
           is useful if the user knows they do not wish to use events from that component and want to reduce the
           PAPI library overhead.

       PAPI_disable_component() must be called before PAPI_library_init().

       SeealsoPAPI_get_event_componentPAPI_library_init

Name

       PAPI_disable_component - disables the specified component

Synopsis

See Also