[compiler-rt] [scudo] Add utilization percentages for stats. (PR #75101)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 11 13:45:20 PST 2023


================
@@ -112,6 +112,21 @@ template <typename T> inline void shuffle(T *A, u32 N, u32 *RandState) {
   *RandState = State;
 }
 
+inline void computePercentage(uptr Numerator, uptr Denominator, uptr *Integral,
----------------
ChiaHungDuan wrote:

I was thinking if we want a `Pair` in Scudo but I didn't get a good use case to add it. This form works for me too. Will leave it to you to make the decision.

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


More information about the llvm-commits mailing list