Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for GoID (0.06 sec)

  1. src/cmd/trace/jsontrace.go

    		}
    		if goids := r.FormValue("goid"); goids != "" {
    			// Render trace focused on a particular goroutine.
    
    			id, err := strconv.ParseUint(goids, 10, 64)
    			if err != nil {
    				log.Printf("failed to parse goid parameter %q: %v", goids, err)
    				return
    			}
    			goid := trace.GoID(id)
    			g, ok := parsed.summary.Goroutines[goid]
    			if !ok {
    				log.Printf("failed to find goroutine %d", goid)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. src/cmd/trace/goroutinegen.go

    	globalMetricGenerator
    	stackSampleGenerator[trace.GoID]
    	logEventGenerator[trace.GoID]
    
    	gStates map[trace.GoID]*gState[trace.GoID]
    	focus   trace.GoID
    	filter  map[trace.GoID]struct{}
    }
    
    func newGoroutineGenerator(ctx *traceContext, focus trace.GoID, filter map[trace.GoID]struct{}) *goroutineGenerator {
    	gg := new(goroutineGenerator)
    	rg := func(ev *trace.Event) trace.GoID {
    		return ev.Goroutine()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. src/internal/trace/resources.go

    // P in particular.
    const NoProc = ProcID(-1)
    
    // GoID is the runtime-internal G structure's goid field. This is unique
    // for each goroutine.
    type GoID int64
    
    // NoGoroutine indicates that the relevant events don't correspond to any
    // goroutine in particular.
    const NoGoroutine = GoID(-1)
    
    // GoState represents the state of a goroutine.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. src/internal/trace/testdata/generators/go122-confuse-seq-across-generations.go

    	b21.Event("GoStart", trace.GoID(1), testgen.Seq(2))
    
    	// The goroutine starts running, then stops, then starts again.
    	b20 := g2.Batch(trace.ThreadID(0), 5)
    	b20.Event("ProcStatus", trace.ProcID(0), go122.ProcRunning)
    	b20.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoRunnable)
    	b20.Event("GoStart", trace.GoID(1), testgen.Seq(1))
    	b20.Event("GoStop", "whatever", testgen.NoStack)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. src/internal/trace/testdata/generators/go122-create-syscall-with-p.go

    	b0.Event("GoCreateSyscall", trace.GoID(4))
    	b0.Event("ProcStatus", trace.ProcID(0), go122.ProcIdle)
    	b0.Event("ProcStart", trace.ProcID(0), testgen.Seq(1))
    	b0.Event("GoSyscallEndBlocked")
    	b0.Event("GoStart", trace.GoID(4), testgen.Seq(1))
    	b0.Event("GoSyscallBegin", testgen.Seq(2), testgen.NoStack)
    	b0.Event("GoDestroySyscall")
    	b0.Event("GoCreateSyscall", trace.GoID(4))
    	b0.Event("GoSyscallEnd")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. src/cmd/trace/procgen.go

    }
    
    func (g *procGenerator) GoroutineTransition(ctx *traceContext, ev *trace.Event) {
    	st := ev.StateTransition()
    	goID := st.Resource.Goroutine()
    
    	// If we haven't seen this goroutine before, create a new
    	// gState for it.
    	gs, ok := g.gStates[goID]
    	if !ok {
    		gs = newGState[trace.ProcID](goID)
    		g.gStates[goID] = gs
    	}
    	// If we haven't already named this goroutine, try to name it.
    	gs.augmentName(st.Stack)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary.go

    	b0.Event("ProcStatus", trace.ProcID(1), go122.ProcRunning)
    	b0.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoSyscall)
    	b0.Event("GoSyscallEndBlocked")
    
    	// A running goroutine stole P0 at the generation boundary.
    	b1 := g.Batch(trace.ThreadID(1), 0)
    	b1.Event("ProcStatus", trace.ProcID(2), go122.ProcRunning)
    	b1.Event("GoStatus", trace.GoID(2), trace.ThreadID(1), go122.GoRunning)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. src/cmd/trace/threadgen.go

    			g.threads[ev.Thread()] = struct{}{}
    		}
    	}
    
    	st := ev.StateTransition()
    	goID := st.Resource.Goroutine()
    
    	// If we haven't seen this goroutine before, create a new
    	// gState for it.
    	gs, ok := g.gStates[goID]
    	if !ok {
    		gs = newGState[trace.ThreadID](goID)
    		g.gStates[goID] = gs
    	}
    	// If we haven't already named this goroutine, try to name it.
    	gs.augmentName(st.Stack)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. src/internal/runtime/exithook/hooks.go

    // If an exit hook invokes exit in another goroutine, that exit will block.
    func Run(code int) {
    	for !locked.CompareAndSwap(0, 1) {
    		if Goid() == runGoid.Load() {
    			Throw("exit hook invoked exit")
    		}
    		Gosched()
    	}
    	defer locked.Store(0)
    	runGoid.Store(Goid())
    	defer runGoid.Store(0)
    
    	defer func() {
    		if e := recover(); e != nil {
    			Throw("exit hook invoked panic")
    		}
    	}()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. src/runtime/tracestatus.go

    // writeGoStatus emits a GoStatus event as well as any active ranges on the goroutine.
    func (w traceWriter) writeGoStatus(goid uint64, mid int64, status traceGoStatus, markAssist bool, stackID uint64) traceWriter {
    	// The status should never be bad. Some invariant must have been violated.
    	if status == traceGoBad {
    		print("runtime: goid=", goid, "\n")
    		throw("attempted to trace a bad status for a goroutine")
    	}
    
    	// Trace the status.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top