mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
trace2: report peak memory usage of the process
Teach Windows version of git to report peak memory usage during exit() processing. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
bce9db6de9
commit
26c6f251d7
14
trace2.h
14
trace2.h
@@ -391,13 +391,19 @@ void trace2_printf(const char *fmt, ...);
|
||||
* Optional platform-specific code to dump information about the
|
||||
* current and any parent process(es). This is intended to allow
|
||||
* post-processors to know who spawned this git instance and anything
|
||||
* else the platform may be able to tell us about the current process.
|
||||
* else that the platform may be able to tell us about the current process.
|
||||
*/
|
||||
|
||||
enum trace2_process_info_reason {
|
||||
TRACE2_PROCESS_INFO_STARTUP,
|
||||
TRACE2_PROCESS_INFO_EXIT,
|
||||
};
|
||||
|
||||
#if defined(GIT_WINDOWS_NATIVE)
|
||||
void trace2_collect_process_info(void);
|
||||
void trace2_collect_process_info(enum trace2_process_info_reason reason);
|
||||
#else
|
||||
#define trace2_collect_process_info() \
|
||||
do { \
|
||||
#define trace2_collect_process_info(reason) \
|
||||
do { \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user