MCPcopy Index your code
hub / github.com/HdrHistogram/hdrhistogram-go

github.com/HdrHistogram/hdrhistogram-go @v1.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.2.0 ↗ · + Follow
156 symbols 559 edges 16 files 69 documented · 44% 30 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

hdrhistogram-go

PkgGoDev Gitter Test License: MIT Codecov

A pure Go implementation of the HDR Histogram.

A Histogram that supports recording and analyzing sampled data value counts across a configurable integer value range with configurable value precision within the range. Value precision is expressed as the number of significant digits in the value recording, and provides control over value quantization behavior across the value range and the subsequent value resolution at any given level.

For documentation, check godoc.

Getting Started

Installing

Use go get to retrieve the hdrhistogram-go implementation and to add it to your GOPATH workspace, or project's Go module dependencies.

go get github.com/HdrHistogram/hdrhistogram-go

To update the implementation use go get -u to retrieve the latest version of the hdrhistogram.

go get github.com/HdrHistogram/hdrhistogram-go

Go Modules

If you are using Go modules, your go get will default to the latest tagged release version of the histogram. To get a specific release version, use @<tag> in your go get command.

go get github.com/HdrHistogram/hdrhistogram-go@v0.9.0

To get the latest HdrHistogram/hdrhistogram-go master repository change use @latest.

go get github.com/HdrHistogram/hdrhistogram-go@latest

Repo transfer and impact on go dependencies


This repository has been transferred under the github HdrHstogram umbrella with the help from the orginal author in Sept 2020. The main reasons are to group all implementations under the same roof and to provide more active contribution from the community as the orginal repository was archived several years ago.

Unfortunately such URL change will break go applications that depend on this library directly or indirectly, as discussed here.

The dependency URL should be modified to point to the new repository URL. The tag "v0.9.0" was applied at the point of transfer and will reflect the exact code that was frozen in the original repository.

If you are using Go modules, you can update to the exact point of transfter using the @v0.9.0 tag in your go get command.

go mod edit -replace github.com/codahale/hdrhistogram=github.com/HdrHistogram/hdrhistogram-go@v0.9.0

Credits


Many thanks for Coda Hale for contributing the initial implementation and transfering the repository here.

Core symbols most depended-on inside this repo

RecordValue
called by 45
hdr.go
ValueAtQuantile
called by 27
hdr.go
TotalCount
called by 13
hdr.go
next
called by 11
hdr.go
New
called by 9
hdr.go
ValueAtPercentiles
called by 9
hdr.go
LowestTrackableValue
called by 9
hdr.go
HighestTrackableValue
called by 9
hdr.go

Shape

Method 79
Function 65
Struct 12

Languages

Go100%

Modules by API surface

hdr.go67 symbols
hdr_test.go24 symbols
log_writer.go13 symbols
log_reader.go9 symbols
hdr_encoding.go8 symbols
hdr_benchmark_test.go8 symbols
window.go4 symbols
log_writer_test.go4 symbols
hdr_encoding_test.go4 symbols
example_hdr_test.go4 symbols
zigzag_whitebox_test.go3 symbols
zigzag.go2 symbols

For agents

$ claude mcp add hdrhistogram-go \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page