[compiler-rt] [MemProf] Add interface for reseting the profile file descriptor (PR #73714)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 28 16:26:16 PST 2023
================
@@ -738,3 +738,11 @@ int __memprof_profile_dump() {
// detected during the dumping process.
return 0;
}
+
+void __memprof_profile_reset() {
+ if (report_file.fd != kInvalidFd && report_file.fd != kStdoutFd &&
+ report_file.fd != kStderrFd) {
+ CloseFile(report_file.fd);
+ report_file.fd = kInvalidFd;
----------------
teresajohnson wrote:
Done
https://github.com/llvm/llvm-project/pull/73714
More information about the llvm-commits
mailing list