diff options
author | Colin Cross <ccross@android.com> | 2024-03-20 12:54:39 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2024-03-20 14:11:54 -0700 |
commit | fbe2133b4d3417adc93daa3819fccf52d2bb66ea (patch) | |
tree | 489499c233d3e979128afcc077ea1c6c01725ddf /src/runtime/cpuprof.go | |
parent | 68a2d6d0813d288a1149f79a7223284fa2f5559f (diff) | |
parent | db6097f8cbaceaed02051850d2411c88b763a0c3 (diff) | |
download | go-fbe2133b4d3417adc93daa3819fccf52d2bb66ea.tar.gz |
Bug: 330574836
Test: builds
Change-Id: Icaf805d49ad96dd3f2960c5f92b4eeb7c131291c
Diffstat (limited to 'src/runtime/cpuprof.go')
-rw-r--r-- | src/runtime/cpuprof.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/runtime/cpuprof.go b/src/runtime/cpuprof.go index 0d7eeacb39..b2898ba909 100644 --- a/src/runtime/cpuprof.go +++ b/src/runtime/cpuprof.go @@ -62,8 +62,8 @@ var cpuprof cpuProfile // If hz <= 0, SetCPUProfileRate turns off profiling. // If the profiler is on, the rate cannot be changed without first turning it off. // -// Most clients should use the runtime/pprof package or -// the testing package's -test.cpuprofile flag instead of calling +// Most clients should use the [runtime/pprof] package or +// the [testing] package's -test.cpuprofile flag instead of calling // SetCPUProfileRate directly. func SetCPUProfileRate(hz int) { // Clamp hz to something reasonable. @@ -202,16 +202,16 @@ func (p *cpuProfile) addExtra() { // The details of generating that format have changed, // so this functionality has been removed. // -// Deprecated: Use the runtime/pprof package, -// or the handlers in the net/http/pprof package, -// or the testing package's -test.cpuprofile flag instead. +// Deprecated: Use the [runtime/pprof] package, +// or the handlers in the [net/http/pprof] package, +// or the [testing] package's -test.cpuprofile flag instead. func CPUProfile() []byte { panic("CPUProfile no longer available") } //go:linkname runtime_pprof_runtime_cyclesPerSecond runtime/pprof.runtime_cyclesPerSecond func runtime_pprof_runtime_cyclesPerSecond() int64 { - return tickspersecond() + return ticksPerSecond() } // readProfile, provided to runtime/pprof, returns the next chunk of |