QMC_CONTEXT(3) | Library Functions Manual | QMC_CONTEXT(3) |
QmcContext - container for a PMAPI context and its metrics
#include <QmcContext.h>
CC ... -lqmc -lpcp
A QmcContext object is a container for a single PMAPI(3) context. The object maintains a list of all the metric descriptors (QmcDesc), instance domains (QmcIndom) and metrics (QmcMetric) using the context to minimize the duplication of these objects.
A QmcContext object should be constructed through the QmcGroup::use interface.
The metric and instance domain descriptors are cached by the QmcContext object to reduce duplicate QmcDesc(3) and QmcIndom(3) objects and PMAPI(3) calls required to create them. Also the mapping from metrics names to pmIDs is also maintained to avoid pmLookupName(3) calls.
PMAPI(3), QMC(3), QmcDesc(3), QmcGroup(3), QmcIndom(3), QmcMetric(3), pmflush(3), pmLookupName(3) and pmprintf(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 options pmc and/or optfetch to the global debugging specification, as described in pmSetDebug(3).
SGI | Performance Co-Pilot |