aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/proc.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-02-22 21:45:01 -0500
committerRuss Cox <rsc@golang.org>2012-02-22 21:45:01 -0500
commite4b02bfdc09ce9e1307250382f3b985f35ca9723 (patch)
tree26c3e8fa3832ef2aed5aace2cf12d5d8329d5bd5 /src/pkg/runtime/proc.c
parent133c6bf77fffcbfa38ed58cf06808b38bbc374e0 (diff)
downloadgo-e4b02bfdc09ce9e1307250382f3b985f35ca9723.tar.xz
runtime: goroutine profile, stack dumps
R=golang-dev, r, r CC=golang-dev https://golang.org/cl/5687076
Diffstat (limited to 'src/pkg/runtime/proc.c')
-rw-r--r--src/pkg/runtime/proc.c6
1 files changed, 6 insertions, 0 deletions
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
@@ -1665,6 +1665,12 @@ runtime·NumGoroutine(int32 ret)
}
int32
+runtime·gcount(void)
+{
+ return runtime·sched.gcount;
+}
+
+int32
runtime·mcount(void)
{
return runtime·sched.mcount;