Debian Codegraph @

docs/api_reference/C/envstat.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;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="env.html" title="Chapter 5.  The DB_ENV Handle" />
11 <link rel="prev" href="envset_verbose.html" title="DB_ENV-&gt;set_verbose()" />
12 <link rel="next" href="envstrerror.html" title="db_strerror" />
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;stat_print()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="envset_verbose.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 5. 
26 The DB_ENV Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="envstrerror.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="envstat"></a>DB_ENV-&gt;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;stat_print(DB_ENV *dbenv, u_int32_t flags); </pre>
45 <p>
46 The <code class="methodname">DB_ENV-&gt;stat_print()</code> method displays the default statistical
47 information. The information is printed to a specified output channel
48 (see the <a class="xref" href="envset_msgfile.html" title="DB_ENV-&gt;set_msgfile()">DB_ENV-&gt;set_msgfile()</a>
49 method for more information), or passed to an application callback
50 function (see the <a class="xref" href="envset_msgcall.html" title="DB_ENV-&gt;set_msgcall()">DB_ENV-&gt;set_msgcall()</a>
51 method for more information).
52 </p>
53 <p>
54 The <code class="methodname">DB_ENV-&gt;stat_print()</code> method may not be called before the
55 <a class="xref" href="envopen.html" title="DB_ENV-&gt;open()">DB_ENV-&gt;open()</a> method is called.
56 </p>
57 <p>
58 The <code class="methodname">DB_ENV-&gt;stat_print()</code> <span>
59 <span>
60 method returns a non-zero error value on failure and 0 on success.
61 </span>
62
63 </span>
64 </p>
65 <p>For Berkeley DB SQL environment statistics, see <a class="xref" href="dbsql.html#dbsql_command_feature" title="Command Line Features Unique to dbsql">Command Line Features Unique to dbsql</a>.</p>
66 <div class="sect2" lang="en" xml:lang="en">
67 <div class="titlepage">
68 <div>
69 <div>
70 <h3 class="title"><a id="idp52368776"></a>Parameters</h3>
71 </div>
72 </div>
73 </div>
74 <div class="sect3" lang="en" xml:lang="en">
75 <div class="titlepage">
76 <div>
77 <div>
78 <h4 class="title"><a id="idp52341032"></a>flags</h4>
79 </div>
80 </div>
81 </div>
82 <p>
83 The <span class="bold"><strong>flags</strong></span> parameter must be set to 0
84 or by bitwise inclusively <span class="bold"><strong>OR</strong></span>'ing
85 together one or more of the following values:
86 </p>
87 <div class="itemizedlist">
88 <ul type="disc">
89 <li>
90 <p><a id="envstat_DB_STAT_ALL"></a>
91 <code class="literal">DB_STAT_ALL</code>
92 </p>
93 <p>
94 Display all available information.
95 </p>
96 </li>
97 <li>
98 <p><a id="envstat_DB_STAT_CLEAR"></a>
99 <code class="literal">DB_STAT_CLEAR</code>
100 </p>
101 <p>
102 Reset statistics after displaying their values.
103 </p>
104 </li>
105 <li>
106 <p><a id="envstat_DB_STAT_SUBSYSTEM"></a>
107 <code class="literal">DB_STAT_SUBSYSTEM</code>
108 </p>
109 <p>
110 Display information for all configured subsystems.
111 </p>
112 </li>
113 </ul>
114 </div>
115 </div>
116 </div>
117 <div class="sect2" lang="en" xml:lang="en">
118 <div class="titlepage">
119 <div>
120 <div>
121 <h3 class="title"><a id="idp52379144"></a>Class</h3>
122 </div>
123 </div>
124 </div>
125 <p>
126 <a class="link" href="env.html" title="Chapter 5.  The DB_ENV Handle">DB_ENV</a>
127 </p>
128 </div>
129 <div class="sect2" lang="en" xml:lang="en">
130 <div class="titlepage">
131 <div>
132 <div>
133 <h3 class="title"><a id="idp52381200"></a>See Also</h3>
134 </div>
135 </div>
136 </div>
137 <p>
138 <a class="xref" href="env.html#envlist" title="Database Environments and Related Methods">Database Environments and Related Methods</a>
139 </p>
140 </div>
141 </div>
142 <div class="navfooter">
143 <hr />
144 <table width="100%" summary="Navigation footer">
145 <tr>
146 <td width="40%" align="left"><a accesskey="p" href="envset_verbose.html">Prev</a> </td>
147 <td width="20%" align="center">
148 <a accesskey="u" href="env.html">Up</a>
149 </td>
150 <td width="40%" align="right"> <a accesskey="n" href="envstrerror.html">Next</a></td>
151 </tr>
152 <tr>
153 <td width="40%" align="left" valign="top">DB_ENV-&gt;set_verbose() </td>
154 <td width="20%" align="center">
155 <a accesskey="h" href="index.html">Home</a>
156 </td>
157 <td width="40%" align="right" valign="top"> db_strerror</td>
158 </tr>
159 </table>
160 </div>
161 </body>
162 </html>