math.Log2
standard libraryThe 5166th most-called standard-library function by production calls. Called 141 times across 67 modules; 114 of those run outside tests and generated code.
- prod calls
- 114
- non-test, non-generated
- all calls
- 141
- total callsites
- modules
- 67
- distinct callers
- in loop
- 16%
- of prod calls
- in tests
- 17%
- 24 calls
- resolved
- 100%
- to a known target
resolution mix
How each call resolves
How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →
- Package function100%A direct call to an exported package function, resolved by type.
who calls this
Notable callers
Production calls into Log2 from notable Go projects. Open one on the map to see what else it hammers.
- Prometheus 12 11%
- Kubernetes 10 9%
- Grafana 7 6%
- TiDB 5 4%
- Cilium 3 3%
where it's called
Callsites in the wild
12 representative callsites of 141, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
gitleaks/gitleaks @v1.25.1
in loop - in loop
-
google/pprof @v0.0.0-20260802141513-ef3492d7dac3
in loop -
klauspost/compress @v1.19.1
in loop -
sjwhitworth/golearn @v0.0.0-20221228163002-74ae077eafb2
in loop - in loop
- in loop
- in loop
- in loop
- in loop
top callers
The modules that reach for it
The modules that call Log2 most in this snapshot.
- github.com/prometheus/prometheus107%
- github.com/cloudflare/circl96%
- github.com/kubernetes/kubernetes64%
- github.com/andybalholm/brotli54%
- github.com/pingcap/tidb54%
siblings
More from math
The other most-called functions in this package. See all →