aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/debug.go
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2012-02-17 08:49:41 +1100
committerDavid Symonds <dsymonds@golang.org>2012-02-17 08:49:41 +1100
commit4b171e5040935f65c011ea58dde6fb49fcd9e6b3 (patch)
tree5539102cfeb5995dc8050130063bafa89ce85380 /src/pkg/runtime/debug.go
parent7fc47928fc807a0c79c5649d7ee9e10d55f3c360 (diff)
downloadgo-4b171e5040935f65c011ea58dde6fb49fcd9e6b3.tar.xz
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
Diffstat (limited to 'src/pkg/runtime/debug.go')
-rw-r--r--src/pkg/runtime/debug.go8
1 files changed, 4 insertions, 4 deletions
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.