PMDUPCONTEXT(3) - man page online | library functions
Duplicate a PMAPI context.
PMDUPCONTEXT(3) Library Functions Manual PMDUPCONTEXT(3)
NAMEpmDupContext - duplicate a PMAPI context
C SYNOPSIS#include <pcp/pmapi.h> int pmDupContext(void); cc ... -lpcp
DESCRIPTIONAn application using the Performance Metrics Application Programming Interface (PMAPI) may manipulate several concurrent contexts, each associated with a source of performance met‐ rics, e.g. pmcd(1) on some host, or an archive log of performance metrics as created by pmlogger(1). Calling pmDupContext will replicate the current PMAPI context, returning a handle for the new context that may be used with subsequent calls to pmUseContext(3). Once created, the duplicated context and the original context have independent existence, and so their instance profiles and collection time (relevant only for archive contexts) may be independently varied. The newly replicated context becomes the current context.
Performance Co-Pilot PCP PMDUPCONTEXT(3)
SEE ALSOPMAPI(3), pmNewContext(3) and pmUseContext(3).
|This manual||Reference||Other manuals|
|pmDupContext(3)||referred by||PMAPI(3) | pmDestroyContext(3) | pmFetch(3) | pmGetArchiveLabel(3) | pmGetContextHostName(3) | pmNewContext(3) | pmUseContext(3) | pmWhichContext(3) | QmcSource(3)|
|refer to||PMAPI(3) | pmcd(1) | pmlogger(1) | pmNewContext(3) | pmUseContext(3)|