]> git.ipfire.org Git - thirdparty/git.git/blobdiff - trace2.c
trace2: report peak memory usage of the process
[thirdparty/git.git] / trace2.c
index 490b3f071e05ea921a92a5fab888683fca1fcf4d..6baa65cdf9aee65ff6ed5def968666800211e8e1 100644 (file)
--- a/trace2.c
+++ b/trace2.c
@@ -213,6 +213,8 @@ int trace2_cmd_exit_fl(const char *file, int line, int code)
        if (!trace2_enabled)
                return code;
 
+       trace2_collect_process_info(TRACE2_PROCESS_INFO_EXIT);
+
        tr2main_exit_code = code;
 
        us_now = getnanotime() / 1000;