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

pmWhichContext - identify the current PMAPI context

C Synopsis

#include<pcp/pmapi.h>intpmWhichContext(void);cc...-lpcp

Description

       An  application  using  the  Performance Metrics Application Programming Interface (PMAPI) may manipulate
       several concurrent contexts, each associated with a source of performance metrics, e.g. pmcd(1)  on  some
       host, or an archive of performance metrics as created by pmlogger(1).

       pmWhichContext  returns  a handle for the current PMAPI context, that may be used in the associated PMAPI
       routines that require a handle to identify a PMAPI context.

Diagnostics

PM_ERR_NOCONTEXT
              no current context

Name

pmWhichContext - identify the current PMAPI context

See Also

PMAPI(3), pmDestroyContext(3), pmDupContext(3), pmNewContext(3) and pmUseContext(3).

Performance Co-Pilot                                   PCP                                     PMWHICHCONTEXT(3)

See Also