PMTRACE(1)
β¨ PMTRACE(1) β bestie edition β¨
okay so welcome to pmtrace from the General Commands Manual section, and literally this is the moment your command line gets β¨instrumentedβ¨. no cap.
π NAME π
pmtrace β command line performance instrumentation. yes, performance instrumentation, and yes it's giving main character energy for your metrics.
πΈ SYNOPSIS πΈ
pmtrace [-q?] [-c value | -e command | -v value] [-h host] [-S state]
tag
π¦ DESCRIPTION π¦
So pmtrace is basically a super simple command line interface to the trace Performance Metrics Domain Agent (PMDA) plus the whole pcp_trace library that comes with it. it's the group chat between your terminal and the trace PMDA, fr fr.
By default β like, if you don't tell it anything else β pmtrace does the point trace data thing: it hands point trace data over to the trace PMDA, and it uses the tag argument as the identifying name that goes with each trace point. that tag then becomes an instance identifier inside the set of trace.point metrics. iconic behavior honestly. π
π OPTIONS π
here's the whole menu, bestie, and we are NOT skipping a single one:
-cvalue β lets you export an arbitrary counter value out through thetrace.countmetrics.-ecommand β lets you run an arbitrary command. this one gets measured as a transaction because it has well defined start and end points (slay, it knows where it begins and where it ends π). the info ends up available through thetrace.transactmetrics.-hhost β sends the trace data to the trace PMDA running on host, instead of on localhost. heads up: this one overrides your use of thePCP_TRACE_HOSTenvironment variable. π-qβ suppresses messages from a successful trace, sopmtracejust runs quietly. shhh. π-Sstate β enables internal debugging and tracing. the value of state is a bit-wise combination of debug flags, exactly as defined inpmtracestate(3), and you can write it with the decimal or hexadecimal syntax thatstrtol(3)prescribes.-vvalue β lets you export an arbitrary floating point value out through thetrace.observemetrics.-?β display the usage message and exit. bye βοΈ
π DIAGNOSTICS π
All of them get generated on standard error, and they're all meant to be self-explanatory (as they should be, honestly).
The pmtrace exit status is always zero β except when the -e option is in use, and in that case the exit status of command gets returned instead. so like, if you're using -e, the exit status is literally not your own anymore. it's command's. periodt.
π FILES π
$PCP_DEMOS_DIR/trace/pmtrace.cβ source code forpmtrace
π§ ENVIRONMENT π§
Since pmtrace uses the libpcp_trace library routines, these environment variables are all honored: PCP_TRACE_HOST, PCP_TRACE_PORT, and PCP_TRACE_TIMEOUT. if you wanna know the detailed semantics of each one, go read pmdatrace(3) β it explains all of it. π«Ά
π PCP ENVIRONMENT π
Environment variables with the prefix PCP_ are the ones used to parameterize the file and directory names that PCP uses. on each installation, the file /etc/pcp.conf contains the local values for these variables. and the $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5).
β SEE ALSO β
pmcd(1), pmdatrace(1), pmprobe(1), PMAPI(3) and pmdatrace(3).
okay bestie that's the whole page, go forth and trace π and one lil sign-off: this whole thing is Performance Co-Pilot, from PCP, and it's the PMTRACE(1) page β mwah, hope it ate πΈβ¨π
π¦ 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
- centos-stream 9: pcp-doc 6.3.7-14.el9 Β· GPL-2.0-or-later AND CC-BY-3.0
- debian trixie: pcp 6.3.8-1
- 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 questing: pcp 6.3.8-1
- ubuntu resolute: pcp 7.1.1-1
- ubuntu stonking: pcp 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