runtime.KeepAlive
standard libraryThe 591st most-called standard-library function by production calls. Called 1,437 times across 63 modules; 1,263 of those run outside tests and generated code.
- prod calls
- 1,263
- non-test, non-generated
- all calls
- 1,437
- total callsites
- modules
- 63
- distinct callers
- in loop
- <1%
- of prod calls
- in tests
- 12%
- 174 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,437, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
google/gvisor @v0.0.0-20260805052044-b67f1412986c
in loop - in loop
- in loop
- in loop
- in loop
-
google/gvisor @v0.0.0-20260805052044-b67f1412986c
in loop - in loop
- in loop
- in loop test
- in loop test
top callers
The modules that reach for it
The modules that call KeepAlive most in this snapshot.
- github.com/sagernet/gvisor1,07375%
- maunium.net/go/mautrix312%
- github.com/google/gvisor302%
- github.com/golang/go292%
- github.com/hajimehoshi/ebiten/v2191%
siblings
More from runtime
The other most-called functions in this package. See all →