src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/Phase.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/Phase.java	Tue Nov 27 18:44:49 2012
--- new/src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/Phase.java	Tue Nov 27 18:44:49 2012

*** 28,41 **** --- 28,44 ---- public class Phase extends BasicLogEvent { private final int startNodes; private int endNodes; + private final int startLiveNodes; + private int endLiveNodes; ! Phase(String n, double s, int nodes, int live) { super(s, n); startNodes = nodes; + startLiveNodes = live; } int getNodes() { return getEndNodes() - getStartNodes(); }
*** 53,62 **** --- 56,81 ---- } public int getEndNodes() { return endNodes; } + /* Number of live nodes added by the phase */ + int getLiveNodes() { + return getEndLiveNodes() - getStartLiveNodes(); + } + + void setEndLiveNodes(int n) { + endLiveNodes = n; + } + + public int getStartLiveNodes() { + return startLiveNodes; + } + + public int getEndLiveNodes() { + return endLiveNodes; + } @Override public void print(PrintStream stream) { throw new UnsupportedOperationException("Not supported yet."); }

src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/Phase.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File