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 7081842 Sdiff src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler

src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/Phase.java

Print this page




  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 package com.sun.hotspot.tools.compiler;
  26 
  27 import java.io.PrintStream;
  28 
  29 public class Phase extends BasicLogEvent {
  30 
  31     private final int startNodes;
  32     private int endNodes;
  33 
  34     Phase(String n, double s, int nodes) {
  35         super(s, n);
  36         startNodes = nodes;
  37     }
  38 
  39     int getNodes() {
  40         return getStartNodes();
  41     }
  42 
  43     void setEndNodes(int n) {
  44         endNodes = n;
  45     }
  46 
  47     public String getName() {
  48         return getId();
  49     }
  50 
  51     public int getStartNodes() {
  52         return startNodes;
  53     }
  54 
  55     public int getEndNodes() {
  56         return endNodes;
  57     }
  58 
  59     @Override
  60     public void print(PrintStream stream) {


  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 package com.sun.hotspot.tools.compiler;
  26 
  27 import java.io.PrintStream;
  28 
  29 public class Phase extends BasicLogEvent {
  30 
  31     private final int startNodes;
  32     private int endNodes;
  33 
  34     Phase(String n, double s, int nodes) {
  35         super(s, n);
  36         startNodes = nodes;
  37     }
  38 
  39     int getNodes() {
  40         return getEndNodes() - getStartNodes();
  41     }
  42 
  43     void setEndNodes(int n) {
  44         endNodes = n;
  45     }
  46 
  47     public String getName() {
  48         return getId();
  49     }
  50 
  51     public int getStartNodes() {
  52         return startNodes;
  53     }
  54 
  55     public int getEndNodes() {
  56         return endNodes;
  57     }
  58 
  59     @Override
  60     public void print(PrintStream stream) {
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