Skip to content

Commit b81b3b9

Browse files
committed
Record stats of SimpleIdentityMap sizes >= 4
1 parent 7dceba3 commit b81b3b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/src/dotty/tools/dotc/util/SimpleIdentityMap.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ object SimpleIdentityMap {
139139
private def value(i: Int): V = bindings(i + 1).asInstanceOf[V]
140140

141141
def size: Int = bindings.length / 2
142+
Stats.record(s"SimpleIdentityMap/$size")
142143

143144
def apply(k: K): V = {
144145
var i = 0

0 commit comments

Comments
 (0)