]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: add functions to emit typed fields into a chunk
authorWilly Tarreau <w@1wt.eu>
Wed, 24 Feb 2016 22:28:31 +0000 (23:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Mar 2016 16:08:05 +0000 (17:08 +0100)
commitb47785f8623191234733760c4030084d7d175929
tree07125fa7951a8b5c1ed170a076949c62fb7da2a8
parent6060074a574686325faf4130c78283c39b50956f
MINOR: stats: add functions to emit typed fields into a chunk

New function stats_emit_typed_data_field() does exactly like
stats_emit_raw_data_field() except that it also prints the data
type after a colon. This will be used to print using the typed
format.

And function stats_emit_field_tags() appends a 3-letter code
describing the origin, nature, and scope, followed by an optional
delimiter. This will be particularly convenient to dump typed
data.
include/proto/dumpstats.h
src/dumpstats.c