- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for doSleep (0.07 sec)
-
src/runtime/testdata/testprogcgo/gprof_c.c
// Functions exported from Go. extern void GoSleep(); struct cgoContextArg { uintptr_t context; }; void gprofCgoContext(void *arg) { ((struct cgoContextArg*)arg)->context = 1; } void gprofCgoTraceback(void *arg) { // spend some time here so the P is more likely to be retaken. volatile int i; for (i = 0; i < 123456789; i++); } void CallGoSleep() { GoSleep();
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 11 18:32:21 UTC 2021 - 700 bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/gprof.go
go C.CallGoSleep() go C.CallGoSleep() go C.CallGoSleep() time.Sleep(1 * time.Second) prof := pprof.Lookup("goroutine") prof.WriteTo(io.Discard, 1) fmt.Println("OK") } //export GoSleep func GoSleep() { time.Sleep(time.Hour)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 11 15:34:02 UTC 2021 - 868 bytes - Viewed (0)