diff options
author | Russell Belfer <rb@github.com> | 2014-04-28 14:04:29 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-05-02 09:21:32 -0700 |
commit | 240f4af321612a0fe4cf01aed75a8cb44173feb8 (patch) | |
tree | d92455ee46456a2de161b1128b0555e9a6e43401 /src/util.h | |
parent | 6a1ca96e4193f79c16c6a71dd8b5d576acf22e91 (diff) | |
download | libgit2-240f4af321612a0fe4cf01aed75a8cb44173feb8.tar.gz |
Add build option for diff internal statistics
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 6fb2dc0f4..be7a16ef8 100644 --- a/src/util.h +++ b/src/util.h @@ -436,4 +436,12 @@ GIT_INLINE(double) git__timer(void) #endif +#ifdef GIT_PERF +# define GIT_PERF_INC(counter) (counter)++ +# define GIT_PERF_ADD(counter,val) (counter) += (val) +#else +# define GIT_PERF_INC(counter) 0 +# define GIT_PERF_ADD(counter,val) 0 +#endif + #endif /* INCLUDE_util_h__ */ |