Debian Codegraph @

docs/api_reference/CXX/txnstat_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>DbEnv::txn_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="txn.html" title="Chapter 13.  The DbTxn Handle" />
11 <link rel="prev" href="txnstat.html" title="DbEnv::txn_stat()" />
12 <link rel="next" href="txnabort.html" title="DbTxn::abort()" />
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">DbEnv::txn_stat_print()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="txnstat.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 13. 
26 The DbTxn Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="txnabort.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="txnstat_print"></a>DbEnv::txn_stat_print()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbEnv::txn_stat_print(u_int32_t flags);</pre>
45 <p>
46 The <code class="methodname">DbEnv::txn_stat_print()</code> method displays the transaction
47 subsystem statistical information, as described for the
48 <code class="methodname">DbEnv::txn_stat()</code> method. The information is printed to a specified
49 output channel (see the <a class="xref" href="envset_msgfile.html" title="DbEnv::set_msgfile()">DbEnv::set_msgfile()</a>
50 method for more information), or passed to an application callback
51 function (see the <a class="xref" href="envset_msgcall.html" title="DbEnv::set_msgcall()">DbEnv::set_msgcall()</a>
52 method for more information).
53 </p>
54 <p>
55 The <code class="methodname">DbEnv::txn_stat_print()</code> method may not be called before the
56 <a class="xref" href="envopen.html" title="DbEnv::open()">DbEnv::open()</a> method is
57 called.
58 </p>
59 <p>
60 The <code class="methodname">DbEnv::txn_stat_print()</code> <span>
61
62 <span>
63 method either returns a non-zero error value or throws an
64 exception that encapsulates a non-zero error value on
65 failure, and returns 0 on success.
66 </span>
67 </span>
68 </p>
69 <div class="sect2" lang="en" xml:lang="en">
70 <div class="titlepage">
71 <div>
72 <div>
73 <h3 class="title"><a id="idp10342424"></a>Parameters</h3>
74 </div>
75 </div>
76 </div>
77 <div class="sect3" lang="en" xml:lang="en">
78 <div class="titlepage">
79 <div>
80 <div>
81 <h4 class="title"><a id="idp10403352"></a>flags</h4>
82 </div>
83 </div>
84 </div>
85 <p>
86 The <span class="bold"><strong>flags</strong></span> parameter must be set to 0
87 or by bitwise inclusively <span class="bold"><strong>OR</strong></span>'ing
88 together one or more of the following values:
89 </p>
90 <div class="itemizedlist">
91 <ul type="disc">
92 <li>
93 <p>
94 <code class="literal">DB_STAT_ALL</code>
95 </p>
96 <p>
97 Display all available information.
98 </p>
99 </li>
100 <li>
101 <p>
102 <code class="literal">DB_STAT_CLEAR</code>
103 </p>
104 <p>
105 Reset statistics after displaying their values.
106 </p>
107 </li>
108 </ul>
109 </div>
110 </div>
111 </div>
112 <div class="sect2" lang="en" xml:lang="en">
113 <div class="titlepage">
114 <div>
115 <div>
116 <h3 class="title"><a id="idp10425832"></a>Class</h3>
117 </div>
118 </div>
119 </div>
120 <p>
121 <a class="link" href="env.html" title="Chapter 5.  The DbEnv Handle">DbEnv</a>, <a class="link" href="txn.html" title="Chapter 13.  The DbTxn Handle">DbTxn</a>
122 </p>
123 </div>
124 <div class="sect2" lang="en" xml:lang="en">
125 <div class="titlepage">
126 <div>
127 <div>
128 <h3 class="title"><a id="idp10426688"></a>See Also</h3>
129 </div>
130 </div>
131 </div>
132 <p>
133 <a class="xref" href="txn.html#txnlist" title="Transaction Subsystem and Related Methods">Transaction Subsystem and Related Methods</a>
134 </p>
135 </div>
136 </div>
137 <div class="navfooter">
138 <hr />
139 <table width="100%" summary="Navigation footer">
140 <tr>
141 <td width="40%" align="left"><a accesskey="p" href="txnstat.html">Prev</a> </td>
142 <td width="20%" align="center">
143 <a accesskey="u" href="txn.html">Up</a>
144 </td>
145 <td width="40%" align="right"> <a accesskey="n" href="txnabort.html">Next</a></td>
146 </tr>
147 <tr>
148 <td width="40%" align="left" valign="top">DbEnv::txn_stat() </td>
149 <td width="20%" align="center">
150 <a accesskey="h" href="index.html">Home</a>
151 </td>
152 <td width="40%" align="right" valign="top"> DbTxn::abort()</td>
153 </tr>
154 </table>
155 </div>
156 </body>
157 </html>