PMIEND(3)
π PMIEND β bestie, it's time to wrap it UP π
okay so this is the pmiEnd page from the Library Functions Manual, and it's literally the "we're done here, pack your bags" function for a LOGIMPORT archive. it's giving closing time at the function. β¨
πΈ NAME πΈ
pmiEnd β finish up a LOGIMPORT archive π
π C SYNOPSIS π
#include <pcp/pmapi.h>
#include <pcp/import.h>
int pmiEnd(void);
cc ... -lpcp_import -lpcp
π¦ Perl SYNOPSIS π¦
use PCP::LogImport;
pmiEnd();
π Python SYNOPSIS π
from pcp import pmi
log.pmiEnd()
β¨ DESCRIPTION β¨
so. this is part of the Performance Co-Pilot Log Import API (peep LOGIMPORT(3) for the whole saga, iykyk). what pmiEnd does is close the current context, which forces the trailer records to be written to the PCP archive files, and then those files get closed. periodt. π
like, the trailer records NEED to go in, bestie β that's the whole point. no trailer, no completed archive.
in normal operations (aka when you're being a well-behaved main character), an application would include a call to pmiEnd at the end of processing for each context that was created with a call to pmiStart(3). every single one. no skipping. π
not me forgetting to call pmiEnd and leaving my archive half-finished... couldn't be me... π
π DIAGNOSTICS π
pmiEnd returns zero on success. slay. β
if it doesn't, you get a negative value, and you can turn that into an actual error message by calling pmiErrStr(3). go get your little explanation, you deserve it. π«Ά
π SEE ALSO π
Performance Co-Pilot wrote this one, bestie β mwah, tysm, no cap. ππ that's the whole page, go forth and close your contexts properly. β
π¦ 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
- 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.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 stonking: libpcp4-dev 7.2.1-2build1
- Copyright (c) 2010 Ken McDonell. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms