OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9636fed
)
[XRay][tools] Fixup definition for stat division.
author
Dean Michael Berris
<dberris@google.com>
Wed, 26 Apr 2017 01:35:23 +0000
(
01:35
+0000)
committer
Dean Michael Berris
<dberris@google.com>
Wed, 26 Apr 2017 01:35:23 +0000
(
01:35
+0000)
Copy-pasta error.
Follow-up to D29320.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301376
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-xray/xray-graph.h
patch
|
blob
|
history
diff --git
a/tools/llvm-xray/xray-graph.h
b/tools/llvm-xray/xray-graph.h
index
3636287
..
a43df26
100644
(file)
--- 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