Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 60 for GoID (0.04 sec)

  1. src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary-reacquire-new-proc-bare-m.go

    }
    
    func gen(t *testgen.Trace) {
    	g := t.Generation(1)
    
    	// One goroutine is exiting with a syscall. It already
    	// acquired a new P.
    	b0 := g.Batch(trace.ThreadID(0), 0)
    	b0.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoSyscall)
    	b0.Event("ProcStatus", trace.ProcID(1), go122.ProcIdle)
    	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
    - 1009 bytes
    - Viewed (0)
  2. src/internal/trace/generation.go

    		if err != nil {
    			return nil, err
    		}
    		goid := GoID(g)
    		if g == 0 {
    			goid = NoGoroutine
    		}
    
    		// Read the sample's stack.
    		s, err := binary.ReadUvarint(r)
    		if err != nil {
    			return nil, err
    		}
    
    		// Add the sample to the slice.
    		samples = append(samples, cpuSample{
    			schedCtx: schedCtx{
    				M: mid,
    				P: pid,
    				G: goid,
    			},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 22:14:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. src/runtime/traceruntime.go

    	}
    	tl.eventWriter(traceGoRunning, traceProcRunning).commit(ev, traceArg(newg.goid), tl.startPC(pc), tl.stack(2))
    }
    
    // GoStart emits a GoStart event.
    //
    // Must be called with a valid P.
    func (tl traceLocker) GoStart() {
    	gp := getg().m.curg
    	pp := gp.m.p
    	w := tl.eventWriter(traceGoRunnable, traceProcRunning)
    	w = w.write(traceEvGoStart, traceArg(gp.goid), gp.trace.nextSeq(tl.gen))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  4. src/internal/trace/testtrace/validation.go

    type Validator struct {
    	lastTs   trace.Time
    	gs       map[trace.GoID]*goState
    	ps       map[trace.ProcID]*procState
    	ms       map[trace.ThreadID]*schedContext
    	ranges   map[trace.ResourceID][]string
    	tasks    map[trace.TaskID]string
    	seenSync bool
    	Go121    bool
    }
    
    type schedContext struct {
    	M trace.ThreadID
    	P trace.ProcID
    	G trace.GoID
    }
    
    type goState struct {
    	state   trace.GoState
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  5. src/runtime/tracestack.go

    			case traceGoRunning, traceGoSyscall:
    				if getg() == gp || mp.curg == gp {
    					break
    				}
    				fallthrough
    			default:
    				print("runtime: gp=", unsafe.Pointer(gp), " gp.goid=", gp.goid, " status=", gStatusStrings[status], "\n")
    				throw("attempted to trace stack of a goroutine this thread does not own")
    			}
    		}
    	}
    
    	if gp != nil && mp == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:56 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/cmd/trace/tasks.go

    		if err != nil {
    			http.Error(w, err.Error(), http.StatusBadRequest)
    			return
    		}
    		type event struct {
    			WhenString string
    			Elapsed    time.Duration
    			Goroutine  trace.GoID
    			What       string
    			// TODO: include stack trace of creation time
    		}
    		type task struct {
    			WhenString string
    			ID         trace.TaskID
    			Duration   time.Duration
    			Complete   bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. src/runtime/traceback.go

    	pc := gp.gopc
    	f := findfunc(pc)
    	if f.valid() && showframe(f.srcFunc(), gp, false, abi.FuncIDNormal) && gp.goid != 1 {
    		printcreatedby1(f, pc, gp.parentGoid)
    	}
    }
    
    func printcreatedby1(f funcInfo, pc uintptr, goid uint64) {
    	print("created by ")
    	printFuncName(funcname(f))
    	if goid != 0 {
    		print(" in goroutine ", goid)
    	}
    	print("\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  8. src/internal/trace/event.go

    			status = GoWaiting
    		}
    		s = goStateTransition(GoID(e.base.args[0]), GoNotExist, status)
    		s.Stack = Stack{table: e.table, id: stackID(e.base.args[1])}
    	case go122.EvGoCreateSyscall:
    		s = goStateTransition(GoID(e.base.args[0]), GoNotExist, GoSyscall)
    	case go122.EvGoStart:
    		s = goStateTransition(GoID(e.base.args[0]), GoRunnable, GoRunning)
    	case go122.EvGoDestroy:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:39:00 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  9. src/runtime/mgcmark.go

    //go:systemstack
    func scanstack(gp *g, gcw *gcWork) int64 {
    	if readgstatus(gp)&_Gscan == 0 {
    		print("runtime:scanstack: gp=", gp, ", goid=", gp.goid, ", gp->atomicstatus=", hex(readgstatus(gp)), "\n")
    		throw("scanstack - bad status")
    	}
    
    	switch readgstatus(gp) &^ _Gscan {
    	default:
    		print("runtime: gp=", gp, ", goid=", gp.goid, ", gp->atomicstatus=", readgstatus(gp), "\n")
    		throw("mark - bad status")
    	case _Gdead:
    		return 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  10. src/cmd/trace/regions.go

    			http.Error(w, err.Error(), http.StatusBadRequest)
    			return
    		}
    
    		// Collect all the regions with their goroutines.
    		type region struct {
    			*trace.UserRegionSummary
    			Goroutine           trace.GoID
    			NonOverlappingStats map[string]time.Duration
    			HasRangeTime        bool
    		}
    		var regions []region
    		var maxTotal time.Duration
    		validNonOverlappingStats := make(map[string]struct{})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 14.3K bytes
    - Viewed (0)
Back to top