diff options
| author | Russ Cox <rsc@golang.org> | 2011-03-23 11:43:37 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-03-23 11:43:37 -0400 |
| commit | c19b373c8ab8eca47a9fd02b97d8492cc099ef10 (patch) | |
| tree | 3b497adbbf4825f10de5e7b82e84634e7ad6b20d /src/pkg/runtime/runtime.h | |
| parent | f9fc1ddf75b33f73787024c0cb47b15b5a40c2cb (diff) | |
| download | go-c19b373c8ab8eca47a9fd02b97d8492cc099ef10.tar.xz | |
runtime: cpu profiling support
R=r
CC=golang-dev
https://golang.org/cl/4306043
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index 8eddda6a5c..6cf2685fde 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -225,6 +225,7 @@ struct M int32 nomemprof; int32 waitnextg; int32 dying; + int32 profilehz; Note havenextg; G* nextg; M* alllink; // on allm @@ -453,9 +454,13 @@ void runtime·siginit(void); bool runtime·sigsend(int32 sig); void runtime·gettime(int64*, int32*); int32 runtime·callers(int32, uintptr*, int32); +int32 runtime·gentraceback(byte*, byte*, byte*, G*, int32, uintptr*, int32); int64 runtime·nanotime(void); void runtime·dopanic(int32); void runtime·startpanic(void); +void runtime·sigprof(uint8 *pc, uint8 *sp, uint8 *lr, G *gp); +void runtime·resetcpuprofiler(int32); +void runtime·setcpuprofilerate(void(*)(uintptr*, int32), int32); #pragma varargck argpos runtime·printf 1 #pragma varargck type "d" int32 |
