reference/info/functions/gc-status.xml
29e86aa417117567242b25bf3af5c876f61c05b6
...
...
@@ -48,10 +48,78 @@
48
48
<literal>"roots"</literal>
49
49
</simpara>
50
50
</listitem>
51
+
<listitem>
52
+
<simpara>
53
+
<literal>"running"</literal>
54
+
</simpara>
55
+
</listitem>
56
+
<listitem>
57
+
<simpara>
58
+
<literal>"protected"</literal>
59
+
</simpara>
60
+
</listitem>
61
+
<listitem>
62
+
<simpara>
63
+
<literal>"full"</literal>
64
+
</simpara>
65
+
</listitem>
66
+
<listitem>
67
+
<simpara>
68
+
<literal>"buffer_size"</literal>
69
+
</simpara>
70
+
</listitem>
71
+
<listitem>
72
+
<simpara>
73
+
<literal>"application_time"</literal>
74
+
</simpara>
75
+
</listitem>
76
+
<listitem>
77
+
<simpara>
78
+
<literal>"collector_time"</literal>
79
+
</simpara>
80
+
</listitem>
81
+
<listitem>
82
+
<simpara>
83
+
<literal>"destructor_time"</literal>
84
+
</simpara>
85
+
</listitem>
86
+
<listitem>
87
+
<simpara>
88
+
<literal>"free_time"</literal>
89
+
</simpara>
90
+
</listitem>
51
91
</itemizedlist>
52
92
</para>
53
93
</refsect1>
54
94

95
+
<refsect1 role="changelog">
96
+
&reftitle.changelog;
97
+
<para>
98
+
<informaltable>
99
+
<tgroup cols="2">
100
+
<thead>
101
+
<row>
102
+
<entry>&Version;</entry>
103
+
<entry>&Description;</entry>
104
+
</row>
105
+
</thead>
106
+
<tbody>
107
+
<row>
108
+
<entry>8.3.0</entry>
109
+
<entry>
110
+
<function>gc_status</function> now returns the following additional fields:
111
+
<literal>"running"</literal>, <literal>"protected"</literal>,
112
+
<literal>"full"</literal>, <literal>"buffer_size"</literal>,
113
+
<literal>"application_time"</literal>, <literal>"collector_time"</literal>,
114
+
<literal>"destructor_time"</literal>, and <literal>"free_time"</literal>.
115
+
</entry>
116
+
</row>
117
+
</tbody>
118
+
</tgroup>
119
+
</informaltable>
120
+
</para>
121
+
</refsect1>
122
+

55
123
<refsect1 role="examples">
56
124
&reftitle.examples;
57
125
<para>
...
...
@@ -91,6 +159,37 @@ array(4) {
91
159
}
92
160
]]>
93
161
</screen>
162
+
&example.outputs.83.similar;
163
+
<screen>
164
+
<![CDATA[
165
+
array(12) {
166
+
["running"]=>
167
+
bool(false)
168
+
["protected"]=>
169
+
bool(false)
170
+
["full"]=>
171
+
bool(false)
172
+
["runs"]=>
173
+
int(5)
174
+
["collected"]=>
175
+
int(100002)
176
+
["threshold"]=>
177
+
int(50001)
178
+
["buffer_size"]=>
179
+
int(131072)
180
+
["roots"]=>
181
+
int(0)
182
+
["application_time"]=>
183
+
float(0.031182458)
184
+
["collector_time"]=>
185
+
float(0.020106291)
186
+
["destructor_time"]=>
187
+
float(0)
188
+
["free_time"]=>
189
+
float(0.003707167)
190
+
}
191
+
]]>
192
+
</screen>
94
193
</example>
95
194
</para>
96
195
</refsect1>
97
196