Provided by: libpcp4-dev_7.0.2-1_amd64 bug

NAME

       pmSortInstances - sort performance metric values on instance identifier

C SYNOPSIS

       #include <pcp/pmapi.h>

       void pmSortInstances(pmResult *result);

       cc ... -lpcp

DESCRIPTION

       The  routine pmSortInstances may be used to guarantee that for each performance metric in the result from
       pmFetch(3) the instances are in ascending instance identifier sequence.

       This is useful when computing rates from two consecutive samples.

COMPATIBILITY

       Prior to PCP 7.0 the timestamp field in the pmResult struct was a struct timeval.  To support PMAPI tran‐
       sition, the old interface and semantics can be used if  applications  are  recompiled  with  -DPMAPI_VER‐
       SION=2.

       For  a  time in PCP 6.x there was a routine with the same semantics as the current pmSortInstances called
       pmSortHighResInstances, and a struct with the same definition as the current pmResult struct called pmRe‐
       sultHighRes, although both are now deprecated and compile-time support for pmSortHighResInstances and pm‐
       ResultHighRes will be removed in a future release.

SEE ALSO

       PMAPI(3) and pmFetch(3).

Performance Co-Pilot                                   PCP                                    PMSORTINSTANCES(3)