QMCSOURCE(3)
π QMCSOURCE(3) π β like, the manual page, bestie
Library Functions Manual β¨ welcome to the QmcSource glow-up, we're doing this together, it's giving "group chat study session" and honestly? obsessed.
πΈ NAME πΈ
QmcSource β manages contexts created by all groups π«Ά
π C++ SYNOPSIS π
okay so first you gotta pull it in, no cap:
#include <QmcSource.h>
c++ ... -lpcp_qmc -lpcp
like, that's the whole vibe check. link those libs and you're in. π
β¨ DESCRIPTION β¨
So QmcSource is that one friend who keeps the receipts π β it maintains a unique list of all metric sources in use, and the whole point is to minimize the creation of new contexts (peep pmNewContext(3)) when the context could have been duplicated (peep pmDupContext(3)). It also reduces the duplication of descriptions of each source, which is lowkey just good housekeeping. π§
And generally? QMC users should only need to access QmcSource methods to obtain source descriptions for a QmcContext(3) object. All context creation by the user should be handled through QmcGroup(3). That's it. That's the assignment. periodt. π
π DESTRUCTOR π
~QmcSource();β Destructor. It says goodbye. It's iconic, it's brief, it's literally just that. π
π¦ CONSTRUCTORS π¦
static QmcSource* getSource(int type, const char* source, bool matchHosts)
This method will return a QmcSource object that represents a context of type to source. π«§
The QmcSource object may be a new object if the source has not been previously requested. Memory management of the QmcSource objects is handled by QmcSource. And if all QmcContext(3)s to the QmcSource have been deleted, the QmcSource object will also be deleted. it cleans up after itself, we love a self-sufficient queen β¨
The matchHosts flag controls the algorithm that is used to match hosts to archives. okay so listen up because this part matters:
- If
matchHostsis equal tofalsethen no attempt will be made by this method to match a host context to an existing source context. AQmcSourceobject will always be returned in this case, although theQmcSource::statusmethod may indicate that a context to source failed. π (yes, you still get an object, no, it might not be happy about it) - If
matchHostsis equal totrue, host contexts will be matched to a predefined archive source collected from that source. And here's the tea: if no archive sources for the source have been previously specified,getSourcewill return aNULLpointer. π¨ like, nothing. nadda. handle it.
π₯ 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. so like... it wrote the message but nobody sent it? that's on you bestie, call the flush π
Additional diagnostics may be activated by adding the option pmc to the global debugging specification, as described in pmSetDebug(3). sprinkle that in and the tea gets detailed. π
π SEE ALSO π
PMAPI(3), QMC(3), QmcContext(3), QmcGroup(3), pmDupContext(3), pmflush(3), pmNewContext(3) and pmprintf(3).
go read them, they're all in the friend group π
Performance Co-Pilot π SGI π and yes, this whole thing is QMCSOURCE(3) β mwah, that's the sign-off, go be the main character of your own context management ππ«Ά
π¦ 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