PLOCKSTAT(1)
π NAME π
okay so this is plockstat(1), and yes bestie, it's lowkey from the General Commands Manual β we're tracing pthread locks today and it's giving main character energy π
plockstat β Trace pthread lock statistics using DTrace β¨
π¦ SYNOPSIS π¦
plockstat [-vACHV] [-n count] [-s depth] [-e secs] [-x opt=val] command
[arg...]
plockstat [-vACHV] [-n count] [-s depth] [-e secs] [-x opt=val] -p pid
πΈ DESCRIPTION πΈ
The plockstat utility traces pthread locks β that's mutexes and rwlocks, bestie β and prints statistics about them. You can use plockstat to investigate bottlenecks in your software. Literally so useful for finding out where your code is being slow and dramatic π
The following options are available:
-vβ Be verbose. Spill the tea, queen π¬-Aβ Print all statistics. All of them. No crumbs π-Cβ Print commulative statistics (the default). Yes, that's the spelling in the original β we keep it, periodt π-Hβ Print a histogram. It's giving data visualization slay π-Vβ Print the DTrace script about to be used tostderr. Peek behind the curtain, iykyk π-n countβ Set the aggregation count for the data set. Numbers, but make it cute π’-s depthβ Set theustack(userland stack) caller depth. Get that stack depth, bestie π§-e secsβ Does nothing at the moment. She's just vibing π-x opt=valβ Specify DTrace options. See thedtrace(1)man page for more details π
β EXIT STATUS β
The plockstat utility exits 0 on success, and >0 if an error occurs. So 0 is the slay outcome, and anything above is the "not me, not today" outcome π
π SEE ALSO π
π HISTORY π
The plockstat utility comes from OpenSolaris and was first imported into FreeBSD 9.0 β a whole origin story, honestly π«Ά
This page is from Debian, dated September 13, 2010 β mwah, periodt ππ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2010 The FreeBSD Foundation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms