1PMTYPESTR(3)               Library Functions Manual               PMTYPESTR(3)
2
3
4

NAME

6       pmTypeStr - convert a performance metric type into a string
7

C SYNOPSIS

9       #include <pcp/pmapi.h>
10
11       const char *pmTypeStr(int type)
12
13       cc ... -lpcp
14

DESCRIPTION

16       Given  a  performance  metric  type,  produce a terse ASCII equivalent,
17       appropriate for use in error and diagnostic messages
18
19       The value for type is typically extracted from a pmDesc structure, fol‐
20       lowing a call to pmLookupDesc(3) for a particular performance metric.
21
22       Examples  are  32  (for  type  equals PM_TYPE_32), U64 (for type equals
23       PM_TYPE_U64), AGGREGATE (for type equals PM_TYPE_AGGREGATE), etc.
24
25       The string value is held in a single static  buffer,  so  the  returned
26       value is only valid until the next call to pmTypeStr.
27

SEE ALSO

29       PMAPI(3),      pmAtomStr(3),     pmConvScale(3),     pmExtractValue(3),
30       pmLookupDesc(3), pmPrintValue(3) and pmUnitsStr(3).
31
32
33
34Performance Co-Pilot                  SGI                         PMTYPESTR(3)
Impressum