aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2023-11-28 19:35:25 -0800
committerGitHub <noreply@github.com>2023-11-28 19:35:25 -0800
commitae86239e86e9e289167fad2d7465d254852ecb82 (patch)
treed3e1ad968dce499808261d2ae56ace5adb08204c /clang/lib/CodeGen/CodeGenModule.cpp
parent4a294b5806417aa88c91aa05735b2d557ea5dfe5 (diff)
downloadllvm-ae86239e86e9e289167fad2d7465d254852ecb82.zip
llvm-ae86239e86e9e289167fad2d7465d254852ecb82.tar.gz
llvm-ae86239e86e9e289167fad2d7465d254852ecb82.tar.bz2
[MemProf] Add interface for reseting the profile file descriptor (#73714)
Add __memprof_profile_reset() interface which can be used to facilitate dumping multiple rounds of profiles from a single binary run. This closes the current file descriptor and resets the internal file descriptor to invalid (-1), which ensures the underlying writer reopens the recorded profile filename. This can be used once the client is done moving or copying a dumped profile, to prepare for reinvoking profile dumping.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions