diff options
author | Eric Wong <e@80x24.org> | 2023-01-11 01:12:49 +0000 |
---|---|---|
committer | Eric Wong <mwrap-perl@80x24.org> | 2023-01-11 04:23:32 +0000 |
commit | 20add372333a15adbb96b69c273f3f50e84189c7 (patch) | |
tree | c06adf4648560769391661a320fe79f65e1ad084 /script/mwrap-perl | |
parent | 64a55ae0ba1d09ccda458eb895d849e7d38cab81 (diff) | |
download | mwrap-20add372333a15adbb96b69c273f3f50e84189c7.tar.gz |
The CSV format has far more info, is self-describing, and Devel::Mwrap->dump never existed. I'm not sure if I care to support a Perl API now that the AF_UNIX HTTP interface exists.
Diffstat (limited to 'script/mwrap-perl')
-rw-r--r-- | script/mwrap-perl | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/script/mwrap-perl b/script/mwrap-perl index 371aee6..cf88375 100644 --- a/script/mwrap-perl +++ b/script/mwrap-perl @@ -70,31 +70,31 @@ This may be changed via POST request (see below). Default: 0 -=item dump_path:$FILENAME +=item dump_csv:$FILENAME -Dumps the output at exit to a given filename: +Dump CSV to the given filename. - total_bytes call_count location +This output matches the HTTP server output and includes column headers, +but is subject to change in future releases. + +C<dump_csv> without the C<:> may also be used in conjunction with +C<dump_fd>, such as C<MWRAP=dump_fd:2,dump_csv>. C<$FILENAME> may contain C<%p> where C<%p> is a placeholder for the PID being dumped. No other use of C<%> is accepted, and multiple C<%> means all C<%> (including C<%p>) are handled as-is. -=item dump_fd:$DESCRIPTOR - -As with dump_path, but dumps the output to a given file descriptor. +=item dump_path:$FILENAME -=item dump_csv:$FILENAME +Gives a simpler, legacy output compatible with the old Ruby version: -Dump CSV to the given filename. + total_bytes call_count location -This output matches the HTTP server output and includes column headers, -but is subject to change in future releases. +Expands C<%p> to the PID in C<$FILENAME> as described for C<dump_csv> -C<dump_csv> without the C<:> may also be used in conjunction with -C<dump_fd>, such as C<MWRAP=dump_fd:2,dump_csv>. +=item dump_fd:$DESCRIPTOR -Expands C<%p> to the PID in C<$FILENAME> as described for C<dump_path:> +As with dump_path, but dumps the output to a given file descriptor. =back |