]> git.ipfire.org Git - thirdparty/git.git/commit - trace2/tr2_dst.c
trace2: write to directory targets
authorJosh Steadmon <steadmon@google.com>
Thu, 21 Mar 2019 21:09:51 +0000 (14:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Mar 2019 05:27:02 +0000 (14:27 +0900)
commita4d3a283db5259cc372809da4dc085c3f40aebfb
tree2f96ae786a221e5ff3bc23abe950c9e119666f91
parent041f5ea1cf987a4068ef5f39ba0a09be85952064
trace2: write to directory targets

When the value of a trace2 environment variable is an absolute path
referring to an existing directory, write output to files (one per
process) underneath the given directory. Files will be named according
to the final component of the trace2 SID, followed by a counter to avoid
potential collisions.

This makes it more convenient to collect traces for every git invocation
by unconditionally setting the relevant trace2 envvar to a constant
directory name.

Signed-off-by: Josh Steadmon <steadmon@google.com>
Reviewed-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/api-trace2.txt
t/t0210-trace2-normal.sh
trace2/tr2_dst.c