runtime.Gosched
standard libraryThe 1657th most-called standard-library function by production calls. Called 705 times across 137 modules; 371 of those run outside tests and generated code.
- prod calls
- 371
- non-test, non-generated
- all calls
- 705
- total callsites
- modules
- 137
- distinct callers
- in loop
- 85%
- of prod calls
- in tests
- 47%
- 334 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 3 <1%
where it's called
Callsites in the wild
12 representative callsites of 705, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cockroachdb/pebble/v2 @v2.1.6
in loop -
containerd/fifo @v1.1.0
in loop -
docker/docker @v28.5.2+incompatible
in loop -
etcd/client/pkg/v3 @v3.7.1
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 -
gogf/gf @v1.16.9
in loop -
golang/go @v0.0.0-20260805010601-5d7583fe1f94
in loop -
google/gvisor @v0.0.0-20260805052044-b67f1412986c
in loop
top callers
The modules that reach for it
The modules that call Gosched most in this snapshot.
- github.com/golang/go23333%
- github.com/vitessio/vitess294%
- vitess.io/vitess294%
- github.com/cockroachdb/cockroach193%
- github.com/google/gvisor162%
siblings
More from runtime
The other most-called functions in this package. See all →