Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for GoID (0.03 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/summary_test.go

    	}
    
    	// Test the function.
    	targetg := trace.GoID(86)
    	got := trace.RelatedGoroutinesV2(events, targetg)
    	want := map[trace.GoID]struct{}{
    		trace.GoID(86):  struct{}{}, // N.B. Result includes target.
    		trace.GoID(71):  struct{}{},
    		trace.GoID(25):  struct{}{},
    		trace.GoID(122): struct{}{},
    	}
    	for goid := range got {
    		if _, ok := want[goid]; ok {
    			delete(want, goid)
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. src/internal/trace/summary.go

    		Tasks:      s.tasks,
    	}
    }
    
    // RelatedGoroutinesV2 finds a set of goroutines related to goroutine goid for v2 traces.
    // The association is based on whether they have synchronized with each other in the Go
    // scheduler (one has unblocked another).
    func RelatedGoroutinesV2(events []Event, goid GoID) map[GoID]struct{} {
    	// Process all the events, looking for transitions of goroutines
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  5. 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)
  6. src/internal/trace/oldtrace.go

    	case oldtrace.EvGoCreate:
    		if it.preInit {
    			it.createdPreInit[GoID(ev.Args[0])] = struct{}{}
    			return Event{}, errSkip
    		}
    		mappedType = go122.EvGoCreate
    	case oldtrace.EvGoStart:
    		if it.preInit {
    			mappedType = go122.EvGoStatus
    			mappedArgs = timedEventArgs{ev.Args[0], ^uint64(0), uint64(go122.GoRunning)}
    			delete(it.createdPreInit, GoID(ev.Args[0]))
    		} else {
    			mappedType = go122.EvGoStart
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. src/runtime/runtime-gdb.py

    			for ptr in SliceValue(gdb.parse_and_eval("'runtime.allgs'")):
    				goids.append(int(ptr['goid']))
    		else:
    			goids = [int(gdb.parse_and_eval(goid_str))]
    
    		for goid in goids:
    			self.invoke_per_goid(goid, cmd)
    
    	def invoke_per_goid(self, goid, cmd):
    		pc, sp = find_goroutine(goid)
    		if not pc:
    			print("No such goroutine: ", goid)
    			return
    		pc = pc_to_int(pc)
    		save_frame = gdb.selected_frame()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 15.4K bytes
    - Viewed (0)
Back to top