diff options
author | René Scharfe <l.s.r@web.de> | 2019-11-04 19:27:54 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-11-06 02:45:18 (GMT) |
commit | 5c34d2f03e4a7505a6acb71b6a1be8d85d1cde05 (patch) | |
tree | 6e5da2bd1c3b4fe9c339ff7b66f057e162b021d9 /trace2/tr2_tbuf.c | |
parent | da72936f544fec5a335e66432610e4cef4430991 (diff) | |
download | git-5c34d2f03e4a7505a6acb71b6a1be8d85d1cde05.zip git-5c34d2f03e4a7505a6acb71b6a1be8d85d1cde05.tar.gz git-5c34d2f03e4a7505a6acb71b6a1be8d85d1cde05.tar.bz2 |
trace2: add dots directly to strbuf in perf_fmt_prepare()
The initialization function of the Trace2 performance format target sets
aside a stash of dots for indenting output. Get rid of it and use
strbuf_addchars() to provide dots on demand instead. This shortens the
code, gets rid of a small heap allocation and is a bit more efficient.
Signed-off-by: René Scharfe <l.s.r@web.de>
Acked-by: Jeff King <peff@peff.net>
Acked-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace2/tr2_tbuf.c')
0 files changed, 0 insertions, 0 deletions