PMFREEPROFILE(3)
π PMFREEPROFILE(3) π
ok so bestie, we're in the Library Functions Manual section of the PCP docs, and today's main character is __pmFreeProfile β the little cleanup queen of the PMAPI world. π§β¨
β¨ NAME β¨
__pmFreeProfile β free a PMAPI instance profile π«Ά
β¨ C SYNOPSIS β¨
#include "pmapi.h"
#include "libpcp.h"
void __pmFreeProfile(pmProfile *prof);
cc ... -lpcp
like, include both headers, call it, and link against -lpcp. no cap. π
π CAVEAT π
ok so listen up because this part is giving serious warning energy:
- This documentation is intended for internal Performance Co-Pilot (PCP) developer use. π§
- These interfaces are not part of the PCP APIs that are guaranteed to remain fixed across releases, and they may not work, or may provide different semantics at some point in the future. π
fr fr, don't build your whole personality (or your production code) around this one. it can absolutely change on you. π
πΈ DESCRIPTION πΈ
__pmFreeProfile frees the storage for the PMAPI instance profile prof β but with one very important condition, bestie: it's assuming that storage was allocated using malloc(3) according to the scheme used in __pmDecodeProfile(3). π
so it's literally just the tidy-up step for a pmProfile that came from the __pmDecodeProfile(3) pipeline. match the vibes, free the memory, move on. β¨
π SEE ALSO π
that's the whole page, bestie β short, iconic, and it frees things. ππ¦
signing off from the Performance Co-Pilot era of PCP, this was PMFREEPROFILE(3) β stay allocated responsibly, mwah π
π¦ 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) 2000-2004 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