code: func (h Histogram) AsPercentiles() []Percentile {
  	if h.Count == 0 {
  		return nil
  	}
  	var percentiles []Percentile
  	for _, bucket := range h.Buckets {
  		if bucket.Count == 0 {
  			continue
  		}
  		if bucket.Count == h.Count || math.IsInf(bucket.UpperBound, 0) {
  			percentiles = append(percentiles, Percentile{
  				Percentile: 100,
  				Value:      time.Duration(bucket.UpperBound * float64(time.Second)),
  			})
  			return percentiles
  		}
  		percentiles = append(percentiles, Percentile{
  			Percentile: 100 * (float64(bucket.Count) / float64(h.Count)),
  			Value:      time.Duration(bucket.UpperBound * float64(time.Second)),
  		})
  	}
  	return percentiles
  }
docs: // AsPercentiles interprets historgram as a bucket of percentiles
  // and returns calculated percentiles