Scroll to navigation

QMCDESC(3) Library Functions Manual QMCDESC(3)

NAME

QmcDesc - container for a metric description

C++ SYNOPSIS

#include <QmcDesc.h>

CC ... -lqmc -lpcp

DESCRIPTION

A QmcDesc object is a container for a metric descriptor (pmDesc, see PMAPI(3)) and units.

CONSTRUCTORS & DESTRUCTOR

~QmcDesc();
Destructor.
Construct a container for the descriptor for pmid. The descriptor is obtained from the current PMAPI(3) context using pmLookupDesc(3).

DESCRIPTION

A status less than zero indicates that the descriptor could not be obtained, the PMAPI(3) error is encoded in the result.
Return the pmID for this descriptor.
Return a copy of the actual metric descriptor.
Return a pointer to the actual descriptor to avoid using a pointer to a temporary.

UNITS

The complete unit string for this descriptor.
The unit string using abbreviations.
Returns true if the units have been set by a call to QmcDesc::setScaleUnits.
Return the scaling units for this descriptor.
Set the scaling units for this descriptor.

DIAGNOSTICS

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).

SEE ALSO

PMAPI(3), QMC(3), pmflush(3), pmLookupDesc(3) and pmprintf(3).

SGI Performance Co-Pilot