1PMPRINTVALUE(3) Library Functions Manual PMPRINTVALUE(3)
2
3
4
6 pmPrintValue - print a performance metric value
7
9 #include <stdio.h>
10 #include <pcp/pmapi.h>
11
12 void pmPrintValue(FILE *f, int valfmt, int type, const pmValue *val,
13 int minwidth)
14
15 cc ... -lpcp
16
18 The value of a single performance metric (as identified by val) is
19 printed on the standard I/O stream identified by f.
20
21 The value of the performance metric is interpreted according to the
22 format of val as defined by valfmt (from a pmValueSet within a pmResult
23 structure; see pmFetch(3)) and the generic description of the metrics
24 type passed in via type.
25
26 The value for type is typically extracted from a pmDesc structure, fol‐
27 lowing a call to pmLookupDesc(3) for a particular performance metric.
28
29 The output will be optionally padded to be at least minwidth characters
30 wide.
31
32 pmPrintValue is most useful for displaying values of performance met‐
33 rics from pmFetch(3) (which returns a set of valfmt and val pairs for
34 each requested metric), based upon the metrics type as returned from
35 pmLookupDesc(3).
36
38 PMAPI(3), pmAtomStr(3), pmConvScale(3), pmExtractValue(3), pmFetch(3),
39 pmLookupDesc(3), pmTypeStr(3) and pmUnitsStr(3).
40
41
42
43Performance Co-Pilot SGI PMPRINTVALUE(3)