PMFREEPROFILE(3)

πŸ“¦
version 7.2.2 Β· 2 versions
, in arch rolling, centos-stream 10, fedora 43, fedora 44, ubuntu resolute, ubuntu stonking

πŸ’– 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