QMCDESC(3)
π QmcDesc β the metric description container, bestie edition π
okay so this is QmcDesc(3), a page from the Library Functions Manual (section 3, C++ library functions, iykyk). It's a container for a metric description and honestly? she's serving structure. β¨
β¨ C++ SYNOPSIS β¨
like, this is how you get her in the door:
#include <QmcDesc.h>
c++ ... -lpcp_qmc -lpcp
yes bestie, you link -lpcp_qmc and -lpcp. both. no skipping. π«Ά
πΈ DESCRIPTION πΈ
A QmcDesc object is literally just a container for a metric descriptor β that's a pmDesc, see PMAPI(3) β plus units. that's it. that's the whole vibe. she holds the descriptor and the units and she holds them well. π
π CONSTRUCTORS & DESTRUCTOR π
~QmcDesc();β Destructor. she says bye. πQmcDesc(pmID pmid);β Construct a container for the descriptor for pmid. The descriptor is obtained from the currentPMAPI(3)context usingpmLookupDesc(3). so like, she goes and fetches it for you, main character energy fr fr. π
β¨ DESCRIPTION β¨ (yes there's a second one, the manpage said so, not me π)
int status() const;β A status less than zero means the descriptor could not be obtained, and thePMAPI(3)error is encoded in the result. so likeβ¦ check her status before you start acting brand new. πpmID id() const;β Return thepmIDfor this descriptor. her name tag. πpmDesc desc() const;β Return a copy of the actual metric descriptor. a copy, bestie, not the original. πconst pmDesc *descPtr() const;β Return a pointer to the actual descriptor, and the whole point of this one is to avoid using a pointer to a temporary. so if you need the real thing and not a ghost of a temporary, this is the one. π¦
π UNITS π
const QString &units() const;β The complete unit string for this descriptor. the full sentence, no abbreviations, she's being thorough. πconst QString &shortUnits() const;β The unit string using abbreviations. the text-message version. βbool useScaleUnits() const;β Returnstrueif the units have been set by a call toQmcDesc::setScaleUnits. literally just a vibe check on whether the scaling units got set. π₯const pmUnits &scaleUnits() const;β Return the scaling units for this descriptor.void setScaleUnits(const pmUnits &units);β Set the scaling units for this descriptor. go off, set them. β¨
π DIAGNOSTICS π
Error messages are generated using pmprintf(3) but β and this is important bestie β they are not flushed. It is the responsibility of the user to call pmflush(3) to output any messages. like, she wrote the message, she did NOT hit send. that's on you. π«Ά
no cap: if you don't call pmflush(3), you don't see the messages. the message exists in the void. the void does not text back. π
Additional diagnostics may be activated by adding the option pmc to the global debugging specification, as described in pmSetDebug(3). turn the dial up, queen. π
π¦ SEE ALSO π¦
PMAPI(3), QMC(3), pmflush(3), pmLookupDesc(3) and pmprintf(3).
and that's the whole page, bestie π this one's a Performance Co-Pilot situation from SGI, and it signs off as QMCDESC(3) β go forth and look up your descriptors, you're gonna slay. πΈβ¨
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.0.1-1.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.1.0-6.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu resolute: libpcp4-dev 7.1.1-1
- ubuntu stonking: libpcp4-dev 7.2.1-2build1
- Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms