|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsilk.performer.MeasureCounter
Represents a custom counter. Use objects of that class instead of MesureInc() and MeasureIncFloat() of the SilkPerformer class.
MeasureTimer| Constructor Summary | |
MeasureCounter(java.lang.String name,
SilkPerformer spContext)
Creates a new custom counter without a metric unit string at first position of the counter list. |
|
MeasureCounter(java.lang.String name,
java.lang.String unit,
int usage,
int idx,
SilkPerformer spContext)
Creates a new custom counter. |
|
MeasureCounter(java.lang.String name,
java.lang.String unit,
int usage,
SilkPerformer spContext)
Creates a new custom counter at first position of the counter list. |
|
MeasureCounter(java.lang.String name,
java.lang.String unit,
SilkPerformer spContext)
Creates a new custom counter at first position of the counter list. |
|
| Method Summary | |
int |
getIdx()
Returns the counter list index of that object. |
java.lang.String |
getName()
Returns the name of the counter. |
java.lang.String |
getUnit()
Returns the metric unit of the counter. |
int |
getUsage()
Returns the usage of the counter, see also MEASURE_USAGE_ options of SilkPerformer class. |
double |
inc()
Increments the counter by 1 and returns the current value (sum or average, see usage). |
double |
inc(double value)
Increments the counter by a value and returns the current value (sum or average, see usage). |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MeasureCounter(java.lang.String name,
SilkPerformer spContext)
name - Counter name, used to identify the measure in output.spContext - The SilkPerformer object of your framework class.
public MeasureCounter(java.lang.String name,
java.lang.String unit,
SilkPerformer spContext)
name - Counter name, used to identify the measure in output.unit - Metric unit string, will be used from PerformanceExplorer for output.spContext - The SilkPerformer object of your framework class.
public MeasureCounter(java.lang.String name,
java.lang.String unit,
int usage,
SilkPerformer spContext)
name - Counter name, used to identify the measure in output.unit - Metric unit string, will be used from PerformanceExplorer for output.usage - Determines how the measure series will be displayed per default in the PerformanceExplorer, see MEASURE_USAGE_ options of SilkPerformer class.spContext - The SilkPerformer object of your framework class.
public MeasureCounter(java.lang.String name,
java.lang.String unit,
int usage,
int idx,
SilkPerformer spContext)
name - Counter name, used to identify the measure in output.unit - Metric unit string, will be used from PerformanceExplorer for output.usage - Determines how the measure series will be displayed per default in the PerformanceExplorer, see MEASURE_USAGE_ options of SilkPerformer class.idx - Index in the counter list, use it for real time monitoring with PerformanceExplorer.spContext - The SilkPerformer object of your framework class.| Method Detail |
public double inc()
throws SilkPerformerException
SilkPerformerException
public double inc(double value)
throws SilkPerformerException
value - Value to increment.
SilkPerformerExceptionpublic java.lang.String getName()
public java.lang.String getUnit()
public int getUsage()
public int getIdx()
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||