< prev index next >

src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/EventProvider.java

Print this page




  74     /**
  75      * Timed events describe an operation that somehow consumes time.
  76      */
  77     public interface TimedEvent extends InstantEvent {
  78         /**
  79          * Starts the timing for this event.
  80          */
  81         void begin();
  82 
  83         /**
  84          * Ends the timing period for this event.
  85          */
  86         void end();
  87     }
  88 
  89     /**
  90      * Creates a new {@link CompilationEvent}.
  91      *
  92      * @return a compilation event
  93      */
  94     public abstract CompilationEvent newCompilationEvent();
  95 
  96     /**
  97      * A compilation event.
  98      */
  99     public interface CompilationEvent extends TimedEvent {
 100         void setMethod(String method);
 101 
 102         void setCompileId(int compileId);
 103 
 104         void setCompileLevel(int compileLevel);
 105 
 106         void setSucceeded(boolean succeeded);
 107 
 108         void setIsOsr(boolean isOsr);
 109 
 110         void setCodeSize(int codeSize);
 111 
 112         void setInlinedBytes(int inlinedBytes);
 113     }
 114 
 115     /**
 116      * Creates a new {@link CompilerFailureEvent}.
 117      *
 118      * @return a compiler failure event
 119      */
 120     public abstract CompilerFailureEvent newCompilerFailureEvent();
 121 
 122     /**
 123      * A compiler failure event.
 124      */
 125     public interface CompilerFailureEvent extends InstantEvent {
 126         void setCompileId(int compileId);
 127 
 128         void setMessage(String message);
 129     }
 130 }


  74     /**
  75      * Timed events describe an operation that somehow consumes time.
  76      */
  77     public interface TimedEvent extends InstantEvent {
  78         /**
  79          * Starts the timing for this event.
  80          */
  81         void begin();
  82 
  83         /**
  84          * Ends the timing period for this event.
  85          */
  86         void end();
  87     }
  88 
  89     /**
  90      * Creates a new {@link CompilationEvent}.
  91      *
  92      * @return a compilation event
  93      */
  94     CompilationEvent newCompilationEvent();
  95 
  96     /**
  97      * A compilation event.
  98      */
  99     public interface CompilationEvent extends TimedEvent {
 100         void setMethod(String method);
 101 
 102         void setCompileId(int compileId);
 103 
 104         void setCompileLevel(int compileLevel);
 105 
 106         void setSucceeded(boolean succeeded);
 107 
 108         void setIsOsr(boolean isOsr);
 109 
 110         void setCodeSize(int codeSize);
 111 
 112         void setInlinedBytes(int inlinedBytes);
 113     }
 114 
 115     /**
 116      * Creates a new {@link CompilerFailureEvent}.
 117      *
 118      * @return a compiler failure event
 119      */
 120     CompilerFailureEvent newCompilerFailureEvent();
 121 
 122     /**
 123      * A compiler failure event.
 124      */
 125     public interface CompilerFailureEvent extends InstantEvent {
 126         void setCompileId(int compileId);
 127 
 128         void setMessage(String message);
 129     }
 130 }
< prev index next >