-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathplockstat.1
73 lines (70 loc) · 1.53 KB
/
plockstat.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
.TH PLOCKSTAT 1 "July 2007" "1.0" ""
.SH NAME
plockstat \- front-end to DTrace to print statistics about POSIX mutexes and read/write locks
\fB
.SH SYNOPSIS
.nf
.fam C
\fBplockstat\fP [\fB-vACHV\fR] [\fB-n\fP \fIcount\fP] [\fB-s\fP \fIdepth\fP] [\fB-e\fP \fIsecs\fP] [\fB-x\fP opt[=val]]
\fBcommand\fP [arg\.\.\.]
.PP
\fBplockstat\fP [\fB-vACHV\fP] [\fB-n\fP \fIcount\fP] [\fB-s\fP \fIdepth\fP] [\fB-e\fP \fIsecs\fP] [\fB-x\fP opt[=val]]
\fB-p\fP \fIpid\fP
.fam T
.fi
.SH OVERVIEW
The \fIplockstat\fP command is a front-end to DTrace that can be used to print
statistics about POSIX mutexes and read/write locks.
.br
.P
Since OS X 10.11, in order to use this, your process must be run with DYLD_LIBRARY_PATH set to
contain /usr/lib/system/introspection:
.RS 8
DYLD_LIBRARY_PATH=/usr/lib/system/introspection
.br
.RE
.P
Which contains the necessary static DTrace probes.
.SH OPTIONS
.TP
.B
\fB-v\fR
print a message when tracing starts
.TP
.B
\fB-A\fP
trace contention and hold events (same as \fB-CH\fP)
.TP
.B
\fB-C\fP
trace contention events for mutexes and rwlocks
.TP
.B
\fB-H\fP
trace hold events for mutexes and rwlocks
.TP
.B
\fB-V\fP
print the dtrace script to run
.TP
.B
\fB-n\fP \fIcount\fP
display only '\fIcount\fP' entries for each event type
.TP
.B
\fB-s\fP \fIdepth\fP
show stack trace upto '\fIdepth\fP' entries
.TP
.B
\fB-e\fP \fIsecs\fP
exit after specified seconds
.TP
.B
\fB-x\fP arg[=val]
enable a DTrace runtime option or a D compiler option
.TP
.B
\fB-p\fP \fIpid\fP
attach and trace the specified process id
.SH SEE ALSO
\fBdtrace\fP(1)