// Record records a new value.
Record records a new value.
// Record records a new value .
func (h *PCPHistogram) Record(val int64) error {
	h.mutex.Lock()
	defer h.mutex.Unlock()
	err := h.h.RecordValue(val)
	if err != nil {
		return err
	}
	return h.update()
}
func ( h * PCPHistogram ) Record ( val int64 ) error { h . mutex . Lock ( ) defer h . mutex . Unlock ( ) err := h . h . RecordValue ( val ) if err != nil { return err } return h . update ( ) }
Record records a new value.
Record records a new value .