diff options
| author | Russ Cox <rsc@golang.org> | 2024-05-22 17:09:02 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2024-05-29 16:25:21 +0000 |
| commit | 9a8995b8b6a08d5fe01122771f962b36336f8aec (patch) | |
| tree | 0222395807dfced049e2602280a7f8614b2addbe /src/runtime/pprof | |
| parent | a3a584e4abad776f4b8e5cab5b5923724fdf75d9 (diff) | |
| download | go-9a8995b8b6a08d5fe01122771f962b36336f8aec.tar.xz | |
all: document legacy //go:linkname for modules with ≥100 dependents
For #67401.
Change-Id: I015408a3f437c1733d97160ef2fb5da6d4efcc5c
Reviewed-on: https://go-review.googlesource.com/c/go/+/587598
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/pprof')
| -rw-r--r-- | src/runtime/pprof/pprof.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/pprof/pprof.go b/src/runtime/pprof/pprof.go index b387397d42..43ef66f0b0 100644 --- a/src/runtime/pprof/pprof.go +++ b/src/runtime/pprof/pprof.go @@ -948,7 +948,7 @@ func writeProfileInternal(w io.Writer, debug int, name string, runtimeProfile fu //go:linkname pprof_goroutineProfileWithLabels runtime.pprof_goroutineProfileWithLabels func pprof_goroutineProfileWithLabels(p []profilerecord.StackRecord, labels []unsafe.Pointer) (n int, ok bool) -//go:linkname pprof_cyclesPerSecond runtime.pprof_cyclesPerSecond +//go:linkname pprof_cyclesPerSecond runtime/pprof.runtime_cyclesPerSecond func pprof_cyclesPerSecond() int64 //go:linkname pprof_memProfileInternal runtime.pprof_memProfileInternal |
