[all-commits] [llvm/llvm-project] ae8623: [MemProf] Add interface for reseting the profile f...

Teresa Johnson via All-commits all-commits at lists.llvm.org
Tue Nov 28 19:35:38 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ae86239e86e9e289167fad2d7465d254852ecb82
      https://github.com/llvm/llvm-project/commit/ae86239e86e9e289167fad2d7465d254852ecb82
  Author: Teresa Johnson <tejohnson at google.com>
  Date:   2023-11-28 (Tue, 28 Nov 2023)

  Changed paths:
    M compiler-rt/include/sanitizer/memprof_interface.h
    M compiler-rt/lib/memprof/memprof_allocator.cpp
    M compiler-rt/lib/memprof/memprof_interface_internal.h
    A compiler-rt/test/memprof/TestCases/profile_reset.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list