diff options
author | Dean Michael Berris <dberris@google.com> | 2017-04-26 01:35:23 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2017-04-26 01:35:23 +0000 |
commit | 8577a8c0fd7cb9f0365b0b45fbaf81b998dc3b7b (patch) | |
tree | bc3f5ff36700c2279d5f2de9714e5d50b7f7d8a3 | |
parent | 9636fedac31ebc6cb9a87f4359fffb28c8419ce1 (diff) |
[XRay][tools] Fixup definition for stat division.
Copy-pasta error.
Follow-up to D29320.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301376 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/llvm-xray/xray-graph.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/llvm-xray/xray-graph.h b/tools/llvm-xray/xray-graph.h index 36362873178..a43df265d0e 100644 --- a/tools/llvm-xray/xray-graph.h +++ b/tools/llvm-xray/xray-graph.h @@ -223,9 +223,9 @@ inline GraphRenderer::TimeStat operator*(const GraphRenderer::TimeStat &A, /// Hadamard Division of TimeStats inline GraphRenderer::TimeStat operator/(const GraphRenderer::TimeStat &A, const GraphRenderer::TimeStat &B) { - return {A.Count * B.Count, A.Min * B.Min, A.Median * B.Median, - A.Pct90 * B.Pct90, A.Pct99 * B.Pct99, A.Max * B.Max, - A.Sum * B.Sum}; + return {A.Count / B.Count, A.Min / B.Min, A.Median / B.Median, + A.Pct90 / B.Pct90, A.Pct99 / B.Pct99, A.Max / B.Max, + A.Sum / B.Sum}; } } // namespace xray } // namespace llvm |