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/diff.h | |
parent | 6a1ca96e4193f79c16c6a71dd8b5d576acf22e91 (diff) | |
download | libgit2-240f4af321612a0fe4cf01aed75a8cb44173feb8.tar.gz |
Add build option for diff internal statistics
Diffstat (limited to 'src/diff.h')
-rw-r--r-- | src/diff.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/diff.h b/src/diff.h index aae8fbff1..491fc4667 100644 --- a/src/diff.h +++ b/src/diff.h @@ -62,6 +62,11 @@ struct git_diff { git_iterator_type_t old_src; git_iterator_type_t new_src; uint32_t diffcaps; +#ifdef GIT_PERF + size_t stat_calls; + size_t oid_calculations; + size_t submodule_lookups; +#endif int (*strcomp)(const char *, const char *); int (*strncomp)(const char *, const char *, size_t); @@ -90,7 +95,7 @@ extern int git_diff_delta__format_file_header( int oid_strlen); extern int git_diff__oid_for_file( - git_repository *, const char *, uint16_t, git_off_t, git_oid *); + git_oid *oit, git_diff *, const char *, uint16_t, git_off_t); extern int git_diff__from_iterators( git_diff **diff_ptr, |