Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 60 for GoID (0.03 sec)

  1. src/internal/trace/testdata/generators/go122-task-across-generations.go

    func gen(t *testgen.Trace) {
    	g1 := t.Generation(1)
    
    	// A running goroutine emits a task begin.
    	b1 := g1.Batch(trace.ThreadID(0), 0)
    	b1.Event("ProcStatus", trace.ProcID(0), go122.ProcRunning)
    	b1.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoRunning)
    	b1.Event("UserTaskBegin", trace.TaskID(2), trace.TaskID(0) /* 0 means no parent, not background */, "my task", testgen.NoStack)
    
    	g2 := t.Generation(2)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. src/internal/trace/testdata/generators/go122-syscall-steal-proc-ambiguous.go

    	// One goroutine does a syscall without blocking, then another one where
    	// it's P gets stolen.
    	b0 := g.Batch(trace.ThreadID(0), 0)
    	b0.Event("ProcStatus", trace.ProcID(0), go122.ProcRunning)
    	b0.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoRunning)
    	b0.Event("GoSyscallBegin", testgen.Seq(1), testgen.NoStack)
    	b0.Event("GoSyscallEnd")
    	b0.Event("GoSyscallBegin", testgen.Seq(2), testgen.NoStack)
    	b0.Event("GoSyscallEndBlocked")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary-bare-m.go

    	// One goroutine is exiting with a syscall. It already
    	// acquired a new P.
    	b0 := g.Batch(trace.ThreadID(0), 0)
    	b0.Event("ProcStatus", trace.ProcID(1), go122.ProcRunning)
    	b0.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoSyscall)
    	b0.Event("GoSyscallEndBlocked")
    
    	// A bare M stole the goroutine's P at the generation boundary.
    	b1 := g.Batch(trace.ThreadID(1), 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 956 bytes
    - Viewed (0)
  4. src/runtime/tracecpu.go

    	// may be nil. Reporting goid of 0 is fine for either g0 or a nil gp.
    	var hdr [3]uint64
    	if pp != nil {
    		// Overflow records in profBuf have all header values set to zero. Make
    		// sure that real headers have at least one bit set.
    		hdr[0] = uint64(pp.id)<<1 | 0b1
    	} else {
    		hdr[0] = 0b10
    	}
    	if gp != nil {
    		hdr[1] = gp.goid
    	}
    	hdr[2] = uint64(mp.procid)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. src/internal/trace/testdata/generators/go122-syscall-steal-proc-simple-bare-m.go

    }
    
    func gen(t *testgen.Trace) {
    	g := t.Generation(1)
    
    	// One goroutine enters a syscall.
    	b0 := g.Batch(trace.ThreadID(0), 0)
    	b0.Event("ProcStatus", trace.ProcID(0), go122.ProcRunning)
    	b0.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoRunning)
    	b0.Event("GoSyscallBegin", testgen.Seq(1), testgen.NoStack)
    	b0.Event("GoSyscallEndBlocked")
    
    	// A bare M steals the goroutine's P.
    	b1 := g.Batch(trace.ThreadID(1), 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 855 bytes
    - Viewed (0)
  6. src/internal/trace/testdata/generators/go122-syscall-steal-proc-reacquire-new-proc-bare-m.go

    	b0 := g.Batch(trace.ThreadID(0), 0)
    	b0.Event("ProcStatus", trace.ProcID(1), go122.ProcIdle)
    	b0.Event("ProcStatus", trace.ProcID(0), go122.ProcRunning)
    	b0.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoRunning)
    	b0.Event("GoSyscallBegin", testgen.Seq(1), testgen.NoStack)
    	b0.Event("ProcStart", trace.ProcID(1), testgen.Seq(1))
    	b0.Event("GoSyscallEndBlocked")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 999 bytes
    - Viewed (0)
  7. src/cmd/trace/gstate.go

    		resource uint64
    		stack    trace.Stack
    	}
    }
    
    // newGState constructs a new goroutine state for the goroutine
    // identified by the provided ID.
    func newGState[R resource](goID trace.GoID) *gState[R] {
    	return &gState[R]{
    		baseName:     fmt.Sprintf("G%d", goID),
    		executing:    R(noResource),
    		activeRanges: make(map[string]activeRange),
    	}
    }
    
    // augmentName attempts to use stk to augment the name of the goroutine
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  8. src/internal/trace/testdata/generators/go122-syscall-steal-proc-sitting-in-syscall.go

    	b0.Event("ProcSteal", trace.ProcID(0), testgen.Seq(1), trace.ThreadID(1))
    
    	// Status event for a goroutine blocked in a syscall for the entire generation.
    	bz := g.Batch(trace.NoThread, 0)
    	bz.Event("GoStatus", trace.GoID(1), trace.ThreadID(1), go122.GoSyscall)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 946 bytes
    - Viewed (0)
  9. src/cmd/trace/goroutines.go

    	"log"
    	"net/http"
    	"slices"
    	"sort"
    	"strings"
    	"time"
    )
    
    // GoroutinesHandlerFunc returns a HandlerFunc that serves list of goroutine groups.
    func GoroutinesHandlerFunc(summaries map[trace.GoID]*trace.GoroutineSummary) http.HandlerFunc {
    	return func(w http.ResponseWriter, r *http.Request) {
    		// goroutineGroup describes a group of goroutines grouped by name.
    		type goroutineGroup struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. src/internal/trace/testdata/generators/go122-syscall-steal-proc-self.go

    	// A goroutine execute a syscall and steals its own P, then starts running
    	// on that P.
    	b0 := g.Batch(trace.ThreadID(0), 0)
    	b0.Event("ProcStatus", trace.ProcID(0), go122.ProcRunning)
    	b0.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoRunning)
    	b0.Event("GoSyscallBegin", testgen.Seq(1), testgen.NoStack)
    	b0.Event("ProcSteal", trace.ProcID(0), testgen.Seq(2), trace.ThreadID(0))
    	b0.Event("ProcStart", trace.ProcID(0), testgen.Seq(3))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1K bytes
    - Viewed (0)
Back to top