runtime.Gosched
standard libraryThe 1705th most-called standard-library function by production calls. Called 786 times across 157 modules; 387 of those run outside tests and generated code.
No change in production calls since 2026-W48.
- prod calls
- 387
- non-test, non-generated
- all calls
- 786
- total callsites
- modules
- 157
- distinct callers
- in loop
- 86%
- of prod calls
- in tests
- 51%
- 399 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 Gosched from notable Go projects. Open one on the map to see what else it hammers.
- CockroachDB 7 2%
- Docker 5 1%
- gRPC 4 1%
- NATS 4 1%
- Prometheus 4 1%
where it's called
Callsites in the wild
12 representative callsites of 786, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cockroachdb/pebble/v2 @v2.1.7
in loop -
miekg/dns @v0.6.152
udp_sendmmsg.go:56
in loop -
containerd/fifo @v1.1.0
in loop -
moby/moby @v28.5.2+incompatible
in loop -
etcd/client/pkg/v3 @v3.7.4
testutil/leak.go:103
in loop -
RomiChan/syncx @v0.0.0-20240418144900-b7402ffdebc7
in loop - in loop
-
XTLS/Xray-core @v1.260327.0
in loop -
astaxie/build-web-application-with-golang @v0.0.0-20220910142224-c294b087b96d
in loop -
ehang-io/nps @v0.26.10
in loop - in loop
-
gogf/gf @v1.16.9
in loop
top callers
The modules that reach for it
The modules that call Gosched most in this snapshot.
- github.com/golang/go23330%
- github.com/vitessio/vitess294%
- vitess.io/vitess294%
- github.com/google/gvisor203%
- github.com/cockroachdb/cockroach192%
siblings
More from runtime
The other most-called functions in this package. See all →