Debian Codegraph @

docs/api_reference/C/lockstat_print.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>DB_ENV-&gt;lock_stat_print()</title>
7 <link rel="stylesheet" href="apiReference.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB C API Reference" />
10 <link rel="up" href="lock.html" title="Chapter 6.  The DB_LOCK Handle" />
11 <link rel="prev" href="lockstat.html" title="DB_ENV-&gt;lock_stat()" />
12 <link rel="next" href="lockvec.html" title="DB_ENV-&gt;lock_vec()" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">DB_ENV-&gt;lock_stat_print()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="lockstat.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 6. 
26 The DB_LOCK Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="lockvec.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="lockstat_print"></a>DB_ENV-&gt;lock_stat_print()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 int
44 DB_ENV-&gt;lock_stat_print(DB_ENV *env, u_int32_t flags); </pre>
45 <p>
46 The <code class="methodname">DB_ENV-&gt;lock_stat_print()</code> method displays the locking subsystem
47 statistical information, as described for the <code class="methodname">DB_ENV-&gt;lock_stat()</code>
48 method. The information is printed to a specified output channel (see
49 the <a class="xref" href="envset_msgfile.html" title="DB_ENV-&gt;set_msgfile()">DB_ENV-&gt;set_msgfile()</a>
50 method for more information), or passed to an application callback
51 function (see the
52 <a class="xref" href="envset_msgcall.html" title="DB_ENV-&gt;set_msgcall()">DB_ENV-&gt;set_msgcall()</a>
53 method for more information).
54 </p>
55 <p>
56 The <code class="methodname">DB_ENV-&gt;lock_stat_print()</code> method may not be called before the
57 <a class="xref" href="envopen.html" title="DB_ENV-&gt;open()">DB_ENV-&gt;open()</a> method is
58 called.
59 </p>
60 <p>
61 The <code class="methodname">DB_ENV-&gt;lock_stat_print()</code> <span>
62 <span>
63 method returns a non-zero error value on failure and 0 on success.
64 </span>
65
66 </span>
67 </p>
68 <div class="sect2" lang="en" xml:lang="en">
69 <div class="titlepage">
70 <div>
71 <div>
72 <h3 class="title"><a id="idp52675888"></a>Parameters</h3>
73 </div>
74 </div>
75 </div>
76 <div class="sect3" lang="en" xml:lang="en">
77 <div class="titlepage">
78 <div>
79 <div>
80 <h4 class="title"><a id="idp52713920"></a>flags</h4>
81 </div>
82 </div>
83 </div>
84 <p>
85 The <span class="bold"><strong>flags</strong></span> parameter must be set to 0
86 or by bitwise inclusively <span class="bold"><strong>OR</strong></span>'ing
87 together one or more of the following values:
88 </p>
89 <div class="itemizedlist">
90 <ul type="disc">
91 <li>
92 <p><a id="lockstat_print_DB_STAT_ALL"></a>
93 <code class="literal">DB_STAT_ALL</code>
94 </p>
95 <p>
96 Display all available information. For each object,
97 the amount of data displayed is limited to 100
98 bytes, unless some other limit is set
99 <span>
100 by calling
101 <a class="xref" href="envset_data_len.html" title="DB_ENV-&gt;set_data_len()">DB_ENV-&gt;set_data_len()</a>,
102 or by
103 </span>
104 using the DB_CONFIG "set_data_len" parameter.
105 </p>
106 </li>
107 <li>
108 <p><a id="envsat_print_DB_STAT_CLEAR"></a>
109 <code class="literal">DB_STAT_CLEAR</code>
110 </p>
111 <p>
112 Reset statistics after displaying their values.
113 </p>
114 </li>
115 <li>
116 <p><a id="envsat_print_DB_STAT_LOCK_CONF"></a>
117 <code class="literal">DB_STAT_LOCK_CONF</code>
118 </p>
119 <p>
120 Display the lock conflict matrix.
121 </p>
122 </li>
123 <li>
124 <p><a id="envsat_print_DB_STAT_LOCK_LOCKERS"></a>
125 <code class="literal">DB_STAT_LOCK_LOCKERS</code>
126 </p>
127 <p>
128 Display the lockers within hash chains.
129 </p>
130 </li>
131 <li>
132 <p><a id="envsat_print_DB_STAT_LOCK_OBJECTS"></a>
133 <code class="literal">DB_STAT_LOCK_OBJECTS</code>
134 </p>
135 <p>
136 Display the lock objects within hash chains. For
137 each object, the amount of data displayed is
138 limited to 100 bytes, unless some other limit is
139 set
140 <span>
141 by calling
142 <a class="xref" href="envset_data_len.html" title="DB_ENV-&gt;set_data_len()">DB_ENV-&gt;set_data_len()</a>,
143 or by
144 </span>
145 using the DB_CONFIG "set_data_len" parameter.
146 </p>
147 </li>
148 <li>
149 <p><a id="envsat_print_DB_STAT_LOCK_PARAMS"></a>
150 <code class="literal">DB_STAT_LOCK_PARAMS</code>
151 </p>
152 <p>
153 Display the locking subsystem parameters.
154 </p>
155 </li>
156 </ul>
157 </div>
158 </div>
159 </div>
160 <div class="sect2" lang="en" xml:lang="en">
161 <div class="titlepage">
162 <div>
163 <div>
164 <h3 class="title"><a id="idp52740104"></a>Class</h3>
165 </div>
166 </div>
167 </div>
168 <p>
169 <a class="link" href="env.html" title="Chapter 5.  The DB_ENV Handle">DB_ENV</a>,
170 <a class="link" href="lock.html" title="Chapter 6.  The DB_LOCK Handle">DB_LOCK</a>
171 </p>
172 </div>
173 <div class="sect2" lang="en" xml:lang="en">
174 <div class="titlepage">
175 <div>
176 <div>
177 <h3 class="title"><a id="idp52702592"></a>See Also</h3>
178 </div>
179 </div>
180 </div>
181 <p>
182 <a class="xref" href="lock.html#locklist" title="Locking Subsystem and Related Methods">Locking Subsystem and Related Methods</a>
183 </p>
184 </div>
185 </div>
186 <div class="navfooter">
187 <hr />
188 <table width="100%" summary="Navigation footer">
189 <tr>
190 <td width="40%" align="left"><a accesskey="p" href="lockstat.html">Prev</a> </td>
191 <td width="20%" align="center">
192 <a accesskey="u" href="lock.html">Up</a>
193 </td>
194 <td width="40%" align="right"> <a accesskey="n" href="lockvec.html">Next</a></td>
195 </tr>
196 <tr>
197 <td width="40%" align="left" valign="top">DB_ENV-&gt;lock_stat() </td>
198 <td width="20%" align="center">
199 <a accesskey="h" href="index.html">Home</a>
200 </td>
201 <td width="40%" align="right" valign="top"> DB_ENV-&gt;lock_vec()</td>
202 </tr>
203 </table>
204 </div>
205 </body>
206 </html>