OSDN Git Service

[opt-viewer] Print allocated memory per remark in opt-stats.py
authorAdam Nemet <anemet@apple.com>
Wed, 19 Jul 2017 22:04:58 +0000 (22:04 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 19 Jul 2017 22:04:58 +0000 (22:04 +0000)
commit8de343050445595da224db5615d16229db8f112a
treeb38e8ad769f1aece98a9b945f3f7a60f7c0e53ae
parent53ff09e06fddfe5909f52784d6a0b9d42d389f43
[opt-viewer] Print allocated memory per remark in opt-stats.py

If heapy is installed print the "average" in-memory remark size.  This is
estimated by dividing the total heap size by the number of unique remarks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308537 91177308-0d34-0410-b5e6-96231b3b80d8
tools/opt-viewer/opt-stats.py