From 4b171e5040935f65c011ea58dde6fb49fcd9e6b3 Mon Sep 17 00:00:00 2001 From: David Symonds Date: Fri, 17 Feb 2012 08:49:41 +1100 Subject: runtime: rename Cgocalls and Goroutines to NumCgoCall and NumGoroutine, respectively. Update some other docs too. Update #2955. R=rsc CC=golang-dev https://golang.org/cl/5676060 --- src/pkg/runtime/debug.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/pkg/runtime/debug.go') diff --git a/src/pkg/runtime/debug.go b/src/pkg/runtime/debug.go index bd6dcc971a..861017d5ff 100644 --- a/src/pkg/runtime/debug.go +++ b/src/pkg/runtime/debug.go @@ -26,11 +26,11 @@ func GOMAXPROCS(n int) int // NumCPU returns the number of logical CPUs on the local machine. func NumCPU() int -// Cgocalls returns the number of cgo calls made by the current process. -func Cgocalls() int64 +// NumCgoCall returns the number of cgo calls made by the current process. +func NumCgoCall() int64 -// Goroutines returns the number of goroutines that currently exist. -func Goroutines() int32 +// NumGoroutine returns the number of goroutines that currently exist. +func NumGoroutine() int32 // Alloc allocates a block of the given size. // FOR TESTING AND DEBUGGING ONLY. -- cgit v1.3