public static class Histogram.Child extends Object
Warning: References to a Child become invalid after using
SimpleCollector.remove(java.lang.String...) or SimpleCollector.clear().
| Modifier and Type | Class and Description |
|---|---|
static class |
Histogram.Child.Value |
| Modifier and Type | Method and Description |
|---|---|
Histogram.Child.Value |
get()
Get the value of the Histogram.
|
void |
observe(double amt)
Observe the given amount.
|
Histogram.Timer |
startTimer()
Start a timer to track a duration.
|
<E> E |
time(Callable<E> timeable)
Executes callable code (e.g.
|
double |
time(Runnable timeable)
Executes runnable code (e.g.
|
public double time(Runnable timeable)
timeable - Code that is being timedpublic <E> E time(Callable<E> timeable)
timeable - Code that is being timedpublic void observe(double amt)
public Histogram.Timer startTimer()
Call Histogram.Timer.observeDuration() at the end of what you want to measure the duration of.
public Histogram.Child.Value get()
Warning: The definition of Histogram.Child.Value is subject to change.
Copyright © 2018. All rights reserved.