[compiler-rt] [llvm] [ctxprof] root autodetection mechanism (PR #133147)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 2 08:35:28 PDT 2025


================
@@ -53,5 +54,35 @@ class PerThreadCallsiteTrie {
   /// thread, together with the number of samples that included them.
   DenseMap<uptr, uint64_t> determineRoots() const;
 };
+
+class RootAutoDetector final {
+  static const uint64_t SampleRate = 6113;
----------------
mtrofin wrote:

done

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


More information about the llvm-commits mailing list