runtime.KeepAlive
standard libraryThe 602nd most-called standard-library function by production calls. Called 1,518 times across 82 modules; 1,296 of those run outside tests and generated code.
0% in production calls vs 2026-W39 (1,293 → 1,296)
- prod calls
- 1,296
- non-test, non-generated
- all calls
- 1,518
- total callsites
- modules
- 82
- distinct callers
- in loop
- <1%
- of prod calls
- in tests
- 15%
- 222 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 KeepAlive from notable Go projects. Open one on the map to see what else it hammers.
- Cilium 11 <1%
- Grafana 3 <1%
- VictoriaMetrics 2 <1%
where it's called
Callsites in the wild
12 representative callsites of 1,518, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
google/gvisor @v0.0.0-20260927234935-6485c3fbdfe2
in loop - in loop
- in loop
- in loop
- in loop
- in loop
-
google/gvisor @v0.0.0-20260927234935-6485c3fbdfe2
in loop - in loop
- in loop
- in loop test
top callers
The modules that reach for it
The modules that call KeepAlive most in this snapshot.
- github.com/sagernet/gvisor1,07371%
- github.com/hajimehoshi/ebiten/v2433%
- github.com/google/gvisor352%
- maunium.net/go/mautrix312%
- github.com/golang/go292%
siblings
More from runtime
The other most-called functions in this package. See all →