Mercurial > hg > truffle
changeset 11663:d213be26ffb4
added metric to count number of times a typed node iterator is used per IterableNodeType (GRAAL-471)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 16 Sep 2013 19:15:34 +0200 |
parents | 929a03fbbbaf |
children | 775e139362d8 |
files | graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeClass.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeClass.java Mon Sep 16 17:15:31 2013 +0200 +++ b/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/NodeClass.java Mon Sep 16 19:15:34 2013 +0200 @@ -147,6 +147,7 @@ private int[] iterableIds; private static final DebugMetric ITERABLE_NODE_TYPES = Debug.metric("IterableNodeTypes"); + private final DebugMetric nodeIterableCount; private NodeClass(Class<?> clazz) { super(clazz); @@ -215,6 +216,7 @@ } isLeafNode = (this.inputOffsets.length == 0 && this.successorOffsets.length == 0); + nodeIterableCount = Debug.metric("NodeIterable_" + shortName); } @Override @@ -242,6 +244,7 @@ } public int[] iterableIds() { + nodeIterableCount.increment(); return iterableIds; }