summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2022-04-04 10:56:23 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-04-04 10:56:23 -0700
commitfe496dc5b9b527a85d381a3fc8e5f2fda9439842 (patch)
tree86aaf60c13375db007b695c41f8053783cf892d2 /git-compat-util.h
parentMerge branch 'gc/branch-recurse-submodules-fix' (diff)
parenttrace2: add stats for fsync operations (diff)
downloadtgif-fe496dc5b9b527a85d381a3fc8e5f2fda9439842.tar.xz
Merge branch 'ns/trace2-fsync-stat'
Trace2 code has been taught to report stats for fsync operations. * ns/trace2-fsync-stat: trace2: add stats for fsync operations
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 0892e209a2..4d444dca27 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -1282,6 +1282,11 @@ enum fsync_action {
int git_fsync(int fd, enum fsync_action action);
/*
+ * Writes out trace statistics for fsync using the trace2 API.
+ */
+void trace_git_fsync_stats(void);
+
+/*
* Preserves errno, prints a message, but gives no warning for ENOENT.
* Returns 0 on success, which includes trying to unlink an object that does
* not exist.