diff options
| author | Russ Cox <rsc@golang.org> | 2012-02-22 21:45:01 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2012-02-22 21:45:01 -0500 |
| commit | e4b02bfdc09ce9e1307250382f3b985f35ca9723 (patch) | |
| tree | 26c3e8fa3832ef2aed5aace2cf12d5d8329d5bd5 /src/pkg/runtime/proc.c | |
| parent | 133c6bf77fffcbfa38ed58cf06808b38bbc374e0 (diff) | |
| download | go-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.c | 6 |
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; |
