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 most useful when trying to compute rates from two consecutive pmFetch(3) results.

See Also

PMAPI(3) and pmFetch(3).

Diagnostics

None.

Referenced By

The man page pmsortinstances(3) is an alias of pmSortInstances(3).

PCP Performance Co-Pilot