From e4b02bfdc09ce9e1307250382f3b985f35ca9723 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 22 Feb 2012 21:45:01 -0500 Subject: runtime: goroutine profile, stack dumps R=golang-dev, r, r CC=golang-dev https://golang.org/cl/5687076 --- src/pkg/runtime/proc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/pkg/runtime/proc.c') diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index d09f075327..d94bec8855 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -1664,6 +1664,12 @@ runtime·NumGoroutine(int32 ret) FLUSH(&ret); } +int32 +runtime·gcount(void) +{ + return runtime·sched.gcount; +} + int32 runtime·mcount(void) { -- cgit v1.3-5-g9baa