Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-08-27 11:02:14 +0300
committerJunio C Hamano <gitster@pobox.com>2021-09-07 21:07:59 +0300
commitf2cc8881d70284ff6277185f8ae96c6f187208b7 (patch)
treeec8cd1e9c1d4ef49345ed2a801e656ce500840b3 /compat
parent7d9c80f62673e03b3455b46cf364cfe509f75c6f (diff)
tr2: clarify TRACE2_PROCESS_INFO_EXIT comment under Linux
Rewrite a comment added in 2f732bf15e6 (tr2: log parent process name, 2021-07-21) to describe what we might do under TRACE2_PROCESS_INFO_EXIT in the future, instead of vaguely referring to "something extra". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Acked-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
-rw-r--r--compat/linux/procinfo.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/compat/linux/procinfo.c b/compat/linux/procinfo.c
index 15a89676c7..62f8aaed4c 100644
--- a/compat/linux/procinfo.c
+++ b/compat/linux/procinfo.c
@@ -32,8 +32,12 @@ void trace2_collect_process_info(enum trace2_process_info_reason reason)
if (!trace2_is_enabled())
return;
- /* someday we may want to write something extra here, but not today */
if (reason == TRACE2_PROCESS_INFO_EXIT)
+ /*
+ * The Windows version of this calls its
+ * get_peak_memory_info() here. We may want to insert
+ * similar process-end statistics here in the future.
+ */
return;
if (reason == TRACE2_PROCESS_INFO_STARTUP) {