Skip to content

add performance tracing facility

Karsten Blees git 5 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest17 patches 0 repliesNew
  2. v716 patches 4 repliesSuperseded
  3. v611 patches 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v511 patches11 repliesSuperseded
v40 of 3 patches0 repliesSuperseded

Changes in v8 from the cover letter

[04]: Fixed -Wextra compiler warnings, thanks to Ramsay Jones. [11]: Added #ifndef TRACE_CONTEXT, explained why __FILE__ ":"
__FUNCTION__ doesn't work.
[17]: New Documentation/technical/api-trace.txt

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17trace: move trace declarations from cache.h to new trace.hcache.h trace.h+19 -110 replies
2/17trace: consistently name the format parametertrace.c trace.h+12 -120 replies
3/17trace: remove redundant printf format attributetrace.c+0 -10 replies
4/17trace: improve trace performancebuiltin/receive-pack.c commit.h pkt-line.c +3 more+78 -590 replies
5/17Documentation/git.txt: improve documentation of 'GIT_TRACE*' variablesDocumentation/git.txt+34 -160 replies
6/17sha1_file: change GIT_TRACE_PACK_ACCESS logging to use trace APIDocumentation/git.txt sha1_file.c+6 -280 replies
7/17trace: add infrastructure to augment trace output with additional infotrace.c trace.h+34 -150 replies
8/17trace: disable additional trace output for unit testst/test-lib.sh trace.c+10 -00 replies
9/17trace: add current timestamp to all trace outputtrace.c+9 -10 replies
10/17trace: move code around, in preparation to file:line outputtrace.c trace.h+26 -220 replies
11/17trace: add 'file:line' to all trace outputgit-compat-util.h trace.c trace.h+126 -120 replies
12/17trace: add high resolution timer function to debug performance issuesMakefile config.mak.uname trace.c +1 more+91 -00 replies
13/17trace: add trace_performance facility to debug performance issuestrace.c trace.h+65 -00 replies
14/17git: add performance tracing for git's main() function to debug scriptsDocumentation/git.txt git.c trace.c +1 more+30 -00 replies
15/17wt-status: simplify performance measurement by using getnanotime()wt-status.c+3 -110 replies
16/17progress: simplify performance measurement by using getnanotime()progress.c+36 -350 replies
17/17api-trace.txt: add trace API documentationDocumentation/technical/api-trace.txt+97 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v8 yet.

Read the v8 thread

Cover letter [PATCH v8 00/17] add performance tracing facility

Changes since v7:
[04]: Fixed -Wextra compiler warnings, thanks to Ramsay Jones. [11]: Added #ifndef TRACE_CONTEXT, explained why __FILE__ ":"
__FUNCTION__ doesn't work.
[17]: New Documentation/technical/api-trace.txt

Karsten Blees (17):
trace: move trace declarations from cache.h to new trace.h
trace: consistently name the format parameter
trace: remove redundant printf format attribute
trace: improve trace performance
Documentation/git.txt: improve documentation of 'GIT_TRACE*' variables
sha1_file: change GIT_TRACE_PACK_ACCESS logging to use trace API
trace: add infrastructure to augment trace output with additional info
trace: disable additional trace output for unit tests
trace: add current timestamp to all trace output
trace: move code around, in preparation to file:line output
trace: add 'file:line' to all trace output
trace: add high resolution timer function to debug performance issues
trace: add trace_performance facility to debug performance issues
git: add performance tracing for git's main() function to debug
scripts
wt-status: simplify performance measurement by using getnanotime()
progress: simplify performance measurement by using getnanotime() api-trace.txt: add trace API documentation

 Documentation/git.txt                 |  59 ++++--
 Documentation/technical/api-trace.txt |  97 +++++++++
 Makefile                              |   7 +
 builtin/receive-pack.c                |   2 +-
 cache.h                               |  13 +-
 commit.h                              |   1 +
 config.mak.uname                      |   1 +
 git-compat-util.h                     |   4 +
 git.c                                 |   2 +
 pkt-line.c                            |   8 +-
 progress.c                            |  71 +++----
 sha1_file.c                           |  30 +--
 shallow.c                             |  10 +-
 t/test-lib.sh                         |   4 +
 trace.c                               | 369 ++++++++++++++++++++++++++++------
 trace.h                               | 113 +++++++++++
 wt-status.c                           |  14 +-
 17 files changed, 629 insertions(+), 176 deletions(-)
 create mode 100644 Documentation/technical/api-trace.txt
 create mode 100644 trace.h
Signature · 1 line
2.0.0.406.g2e9ef9b