- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for blockingSyscall (0.28 sec)
-
src/cmd/trace/testdata/testprog/main.go
if err != nil { log.Fatalf("dial failed: %v", err) } var tmp [1]byte c.Read(tmp[:]) c.Close() trace.Stop() } // blockingSyscall blocks the current goroutine for duration d in a syscall and // sends a message to done when it is done or if the syscall failed. func blockingSyscall(d time.Duration, done chan<- error) { r, w, err := os.Pipe() if err != nil { done <- err return } start := time.Now()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 17:15:58 UTC 2024 - 2.5K bytes - Viewed (0) -
src/cmd/trace/jsontrace_test.go
// TODO(mknyszek): Check for flow events. }) } } func checkSyscalls(t *testing.T, data format.Data) { data = filterViewerTrace(data, filterEventName("syscall"), filterStackRootFunc("main.blockingSyscall")) if len(data.Events) <= 1 { t.Errorf("got %d events, want > 1", len(data.Events)) } data = filterViewerTrace(data, filterBlocked("yes")) if len(data.Events) != 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 7.8K bytes - Viewed (0) -
src/cmd/trace/testdata/go122.test
String id=56 data="net.Dial" String id=57 data="runtime.chansend1" String id=58 data="/usr/local/google/home/mknyszek/work/go-1/src/runtime/chan.go" String id=59 data="main.blockingSyscall" String id=60 data="time.Sleep" String id=61 data="/usr/local/google/home/mknyszek/work/go-1/src/runtime/time.go" String id=62 data="main.allocHog" String id=63 data="main.cpu10"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 17:15:58 UTC 2024 - 166K bytes - Viewed (0)