[compiler-rt] [MemProf] Add interface for reseting the profile file descriptor (PR #73714)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 15:50:38 PST 2023


================
@@ -0,0 +1,39 @@
+// Test to ensure that multiple rounds of dumping, using the
+// __memprof_profile_reset interface to close the initial file
+// and cause the profile to be reopened, works as expected.
+
+// RUN: %clangxx_memprof  %s -o %t
+
+// RUN: rm -f %t.log.*
+// RUN: %env_memprof_opts=print_text=true:log_path=%t.log %run %t
+
+// Check both outputs, starting with the renamed initial dump, then remove it so
+// that the second glob matches a single file.
+// RUN: FileCheck %s --dump-input=always < %t.log.*.sv
----------------
snehasish wrote:

Is the dump-input left over from debugging? The default is on fail which seems fine.

https://github.com/llvm/llvm-project/pull/73714


More information about the llvm-commits mailing list