|
|
@ -441,6 +441,8 @@ func (d *Decoder) HistogramSamples(rec []byte, histograms []RefHistogramSample) |
|
|
|
H: &histogram.Histogram{}, |
|
|
|
H: &histogram.Histogram{}, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rh.H.CounterResetHint = histogram.CounterResetHint(dec.Byte()) |
|
|
|
|
|
|
|
|
|
|
|
rh.H.Schema = int32(dec.Varint64()) |
|
|
|
rh.H.Schema = int32(dec.Varint64()) |
|
|
|
rh.H.ZeroThreshold = math.Float64frombits(dec.Be64()) |
|
|
|
rh.H.ZeroThreshold = math.Float64frombits(dec.Be64()) |
|
|
|
|
|
|
|
|
|
|
@ -517,6 +519,8 @@ func (d *Decoder) FloatHistogramSamples(rec []byte, histograms []RefFloatHistogr |
|
|
|
FH: &histogram.FloatHistogram{}, |
|
|
|
FH: &histogram.FloatHistogram{}, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rh.FH.CounterResetHint = histogram.CounterResetHint(dec.Byte()) |
|
|
|
|
|
|
|
|
|
|
|
rh.FH.Schema = int32(dec.Varint64()) |
|
|
|
rh.FH.Schema = int32(dec.Varint64()) |
|
|
|
rh.FH.ZeroThreshold = dec.Be64Float64() |
|
|
|
rh.FH.ZeroThreshold = dec.Be64Float64() |
|
|
|
|
|
|
|
|
|
|
@ -715,6 +719,8 @@ func (e *Encoder) HistogramSamples(histograms []RefHistogramSample, b []byte) [] |
|
|
|
buf.PutVarint64(int64(h.Ref) - int64(first.Ref)) |
|
|
|
buf.PutVarint64(int64(h.Ref) - int64(first.Ref)) |
|
|
|
buf.PutVarint64(h.T - first.T) |
|
|
|
buf.PutVarint64(h.T - first.T) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
buf.PutByte(byte(h.H.CounterResetHint)) |
|
|
|
|
|
|
|
|
|
|
|
buf.PutVarint64(int64(h.H.Schema)) |
|
|
|
buf.PutVarint64(int64(h.H.Schema)) |
|
|
|
buf.PutBE64(math.Float64bits(h.H.ZeroThreshold)) |
|
|
|
buf.PutBE64(math.Float64bits(h.H.ZeroThreshold)) |
|
|
|
|
|
|
|
|
|
|
@ -766,6 +772,8 @@ func (e *Encoder) FloatHistogramSamples(histograms []RefFloatHistogramSample, b |
|
|
|
buf.PutVarint64(int64(h.Ref) - int64(first.Ref)) |
|
|
|
buf.PutVarint64(int64(h.Ref) - int64(first.Ref)) |
|
|
|
buf.PutVarint64(h.T - first.T) |
|
|
|
buf.PutVarint64(h.T - first.T) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
buf.PutByte(byte(h.FH.CounterResetHint)) |
|
|
|
|
|
|
|
|
|
|
|
buf.PutVarint64(int64(h.FH.Schema)) |
|
|
|
buf.PutVarint64(int64(h.FH.Schema)) |
|
|
|
buf.PutBEFloat64(h.FH.ZeroThreshold) |
|
|
|
buf.PutBEFloat64(h.FH.ZeroThreshold) |
|
|
|
|
|
|
|
|
|
|
|