de.uka.ipd.sdq.ByCounter.execution
Enum CountingResultCollectorMode

java.lang.Object
  extended by java.lang.Enum<CountingResultCollectorMode>
      extended by de.uka.ipd.sdq.ByCounter.execution.CountingResultCollectorMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CountingResultCollectorMode>

public enum CountingResultCollectorMode
extends java.lang.Enum<CountingResultCollectorMode>

This enum lists modes in which the CountingResultCollector can handle the counting of results.


Enum Constant Summary
DiscardAllIncomingCountingResults
          Do not save any counting results at all.
ForceInlineDisregardingInstrumentMethodWishes_InstructionAndMethodCounts
          Inline counting results (instruction and method counts) in all cases.
ForceInlineDisregardingInstrumentMethodWishes_InstructionAndMethodCounts_ButCountReportsPerSignature
          Inline counting results (instruction and method counts) in all cases, but save the method signatures of individuall reporting methods.
UseReportingMethodChoiceByInstrumentedMethods
          default
UseThresholdPerReportingMethod_UntilTotalThresholdReachedThenForceInline
          Force inlining of a methods results once a threshold of results reported from that method is reached.
UseTotalThreshold_RegardlessOfIndividualMethodCountsThenForceInline
          Force inlining of a methods results once a total threshold of results reported from any method is reached.
 
Method Summary
 boolean getCountReportsPerSignature()
           
 boolean getForceInliningAlways()
           
 boolean getForceInliningPossible()
           
static CountingResultCollectorMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CountingResultCollectorMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DiscardAllIncomingCountingResults

public static final CountingResultCollectorMode DiscardAllIncomingCountingResults
Do not save any counting results at all.


ForceInlineDisregardingInstrumentMethodWishes_InstructionAndMethodCounts

public static final CountingResultCollectorMode ForceInlineDisregardingInstrumentMethodWishes_InstructionAndMethodCounts
Inline counting results (instruction and method counts) in all cases.


ForceInlineDisregardingInstrumentMethodWishes_InstructionAndMethodCounts_ButCountReportsPerSignature

public static final CountingResultCollectorMode ForceInlineDisregardingInstrumentMethodWishes_InstructionAndMethodCounts_ButCountReportsPerSignature
Inline counting results (instruction and method counts) in all cases, but save the method signatures of individuall reporting methods.


UseReportingMethodChoiceByInstrumentedMethods

public static final CountingResultCollectorMode UseReportingMethodChoiceByInstrumentedMethods
default


UseThresholdPerReportingMethod_UntilTotalThresholdReachedThenForceInline

public static final CountingResultCollectorMode UseThresholdPerReportingMethod_UntilTotalThresholdReachedThenForceInline
Force inlining of a methods results once a threshold of results reported from that method is reached. When the threshold of total reported methods is reached, force inlining on all methods. unlimited threshold allowed --> define constant


UseTotalThreshold_RegardlessOfIndividualMethodCountsThenForceInline

public static final CountingResultCollectorMode UseTotalThreshold_RegardlessOfIndividualMethodCountsThenForceInline
Force inlining of a methods results once a total threshold of results reported from any method is reached. unlimited threshold allowed --> define constant

Method Detail

values

public static CountingResultCollectorMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CountingResultCollectorMode c : CountingResultCollectorMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CountingResultCollectorMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getCountReportsPerSignature

public boolean getCountReportsPerSignature()
Returns:
True if this mode specified reporting per signature.

getForceInliningAlways

public boolean getForceInliningAlways()
Returns:
True if this mode specified forced inlining in all cases.

getForceInliningPossible

public boolean getForceInliningPossible()
Returns:
True, if inlining is forced in some or all cases, ignoring the inlining settings specified for the method.