QMCGROUP(3) | Library Functions Manual | QMCGROUP(3) |
QmcGroup - container representing a single fetch group of metrics from multiple sources
#include <QmcGroup.h>
CC ... -lqmc -lpcp
A QmcGroup object is a container for contexts and metrics that should be fetched at the same time. The class manages the QmcContext(3) objects, timezones and bounds for every context created with QmcGroup::use and QmcGroup::addMetric.
The default context of the group is defined as the first context created with QmcGroup::use before the first call to QmcGroup::addMetric. If no context is created before the first metric is added, the localhost is used as the default context. Therefore, if any metrics specifications contain archive sources, an archive source must have been created with QmcGroup::use to avoid an error for mixing context types.
These addMetric methods should be used to create new metrics as the QmcMetric constructors are private. These methods will always return a pointer to a QmcMetric object, however the QmcMetric::status() field should be checked to ensure the metric is valid.
Add the metric str to the group, with a scaling factor of scale. If active is set the metric will use only active instances (see QmcMetric(3)).
Add the metric theMetric to the group, with a scaling factor of scale. If active is set the metric will use only active instances (see QmcMetric(3)).
Set the mode and time to access all archive contexts in this group. See pmSetmode(3) for more details.
These methods assist in the management of multiple timezones and help to control the current timezone.
PMAPI(3), QMC(3), QmcContext(3), QmcMetric(3), pmflush(3), pmprintf(3) and pmSetMode(3).
Error messages are generated using pmprintf(3) but are not flushed. It is the responsibility of the user to call pmflush(3) to output any messages.
Additional diagnostics may be activated by adding the option pmc to the global debugging specification, as described in pmSetDebug(3).
SGI | Performance Co-Pilot |