Skip to content

Commit f2cc888

Browse files
avargitster
authored andcommitted
tr2: clarify TRACE2_PROCESS_INFO_EXIT comment under Linux
Rewrite a comment added in 2f732bf (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 <[email protected]> Acked-by: Taylor Blau <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7d9c80f commit f2cc888

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compat/linux/procinfo.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ void trace2_collect_process_info(enum trace2_process_info_reason reason)
3232
if (!trace2_is_enabled())
3333
return;
3434

35-
/* someday we may want to write something extra here, but not today */
3635
if (reason == TRACE2_PROCESS_INFO_EXIT)
36+
/*
37+
* The Windows version of this calls its
38+
* get_peak_memory_info() here. We may want to insert
39+
* similar process-end statistics here in the future.
40+
*/
3741
return;
3842

3943
if (reason == TRACE2_PROCESS_INFO_STARTUP) {

0 commit comments

Comments
 (0)