[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:08 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
----------------
teresajohnson wrote:
Looks like this came in when I copied from another test, where it is presumably leftover debugging. I removed from here.
https://github.com/llvm/llvm-project/pull/73714
More information about the llvm-commits
mailing list