Package org.openjdk.jmh.util
Class SampleBuffer
- java.lang.Object
-
- org.openjdk.jmh.util.SampleBuffer
-
- All Implemented Interfaces:
java.io.Serializable
public class SampleBuffer extends java.lang.Object implements java.io.Serializable
Sampling buffer accepts samples.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static int
BUCKETS
private int[][]
hdr
private static int
PRECISION_BITS
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SampleBuffer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(long sample)
void
addAll(SampleBuffer other)
int
count()
Statistics
getStatistics(double multiplier)
void
half()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
PRECISION_BITS
private static final int PRECISION_BITS
- See Also:
- Constant Field Values
-
BUCKETS
private static final int BUCKETS
- See Also:
- Constant Field Values
-
hdr
private final int[][] hdr
-
-
Method Detail
-
half
public void half()
-
add
public void add(long sample)
-
getStatistics
public Statistics getStatistics(double multiplier)
-
addAll
public void addAll(SampleBuffer other)
-
count
public int count()
-
-