document `duration-stats`
@@ -34,10 +34,28 @@ The information returned by the <code>/json</code> handler can be filtered out u
There are currently three modules defined:
<ul>
<li><code>requests</code>: displays the requests currently in-flight.</li>
+<li><code>durations</code>: displays durations statistics for requests since server start time. (returns all zeros unless <code>duration-stats</code> is <code>ON</code>)</li>
<li><code>errors</code>: displays counters for internally generated errors.</li>
<li><code>main</code>: displays general daemon-wide stats.</li>
</ul>
</p>
? })
+<?
+$ctx->{directive}->(
+ name => "duration-stats",
+ levels => [ qw(globa) ],
+ since => '2.1',
+ default => 'duration-stats: OFF',
+ desc => q{Gather timing stats for requests.},
+)->(sub {
+?>
+</p>
+<p>
+If the argument is <code>ON</code>, this directive populates duration
+statistics to be consumed by status handlers. Note: enabling this feature
+has a noticeable CPU and memory impact.
+</p>
+? })
+
? })
