1PMWHICHCONTEXT(3) Library Functions Manual PMWHICHCONTEXT(3)
2
3
4
6 pmWhichContext - identify the current PMAPI context
7
9 #include <pcp/pmapi.h>
10
11 int pmWhichContext(void)
12
13 cc ... -lpcp
14
16 An application using the Performance Metrics Application Programming
17 Interface (PMAPI) may manipulate several concurrent contexts, each
18 associated with a source of performance metrics, e.g. pmcd(1) on some
19 host, or an archive log of performance metrics as created by pmlog‐
20 ger(1).
21
22 pmWhichContext returns a handle for the current PMAPI context, that may
23 be used in the associated PMAPI routines that require a handle to iden‐
24 tify a PMAPI context.
25
27 PMAPI(3), pmDestroyContext(3), pmDupContext(3), pmNewContext(3) and
28 pmUseContext(3).
29
31 PM_ERR_NOCONTEXT
32 no current context
33
34
35
36Performance Co-Pilot SGI PMWHICHCONTEXT(3)