Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for GoRunning (0.11 sec)

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

    	// 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)
    	b1.Event("ProcStatus", trace.ProcID(0), go122.ProcSyscallAbandoned)
    	b1.Event("ProcSteal", trace.ProcID(0), testgen.Seq(1), trace.ThreadID(0))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. src/internal/trace/resources.go

    const (
    	GoUndetermined GoState = iota // No information is known about the goroutine.
    	GoNotExist                    // Goroutine does not exist.
    	GoRunnable                    // Goroutine is runnable but not running.
    	GoRunning                     // Goroutine is running.
    	GoWaiting                     // Goroutine is waiting on something to happen.
    	GoSyscall                     // Goroutine is in a system call.
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. src/internal/trace/event.go

    		s = goStateTransition(GoID(e.base.args[0]), GoRunnable, GoRunning)
    	case go122.EvGoDestroy:
    		s = goStateTransition(e.ctx.G, GoRunning, GoNotExist)
    		s.Stack = e.Stack() // This event references the resource the event happened on.
    	case go122.EvGoDestroySyscall:
    		s = goStateTransition(e.ctx.G, GoSyscall, GoNotExist)
    	case go122.EvGoStop:
    		s = goStateTransition(e.ctx.G, GoRunning, GoRunnable)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:39:00 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  4. src/internal/trace/order.go

    		return curCtx, false, err
    	}
    	// If we have a goroutine, it must be running.
    	if state, ok := o.gStates[curCtx.G]; ok && state.status != go122.GoRunning {
    		return curCtx, false, fmt.Errorf("%s event for goroutine that's not %s", go122.EventString(ev.typ), GoRunning)
    	}
    	// This goroutine created another. Add a state for it.
    	newgid := GoID(ev.args[0])
    	if _, ok := o.gStates[newgid]; ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  5. src/internal/trace/testdata/generators/go122-confuse-seq-across-generations.go

    	g1 := t.Generation(1)
    
    	// A running goroutine blocks.
    	b10 := g1.Batch(trace.ThreadID(0), 0)
    	b10.Event("ProcStatus", trace.ProcID(0), go122.ProcRunning)
    	b10.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoRunning)
    	b10.Event("GoStop", "whatever", testgen.NoStack)
    
    	// The running goroutine gets unblocked.
    	b11 := g1.Batch(trace.ThreadID(1), 0)
    	b11.Event("ProcStatus", trace.ProcID(1), go122.ProcRunning)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. src/cmd/trace/goroutinegen.go

    	}
    	if from == trace.GoNotExist && to == trace.GoRunnable {
    		// Goroutine was created.
    		gs.created(ev.Time(), ev.Goroutine(), ev.Stack())
    	}
    	if from == trace.GoSyscall && to != trace.GoRunning {
    		// Exiting blocked syscall.
    		gs.syscallEnd(ev.Time(), true, ctx)
    		gs.blockedSyscallEnd(ev.Time(), ev.Stack(), ctx)
    	} else if from == trace.GoSyscall {
    		// Check if we're exiting a syscall in a non-blocking way.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. src/internal/trace/event/go122/event.go

    		Experiment:   AllocFree,
    	},
    }
    
    type GoStatus uint8
    
    const (
    	GoBad GoStatus = iota
    	GoRunnable
    	GoRunning
    	GoSyscall
    	GoWaiting
    )
    
    func (s GoStatus) String() string {
    	switch s {
    	case GoRunnable:
    		return "Runnable"
    	case GoRunning:
    		return "Running"
    	case GoSyscall:
    		return "Syscall"
    	case GoWaiting:
    		return "Waiting"
    	}
    	return "Bad"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  8. src/cmd/trace/threadgen.go

    		// Goroutine was created.
    		gs.created(ev.Time(), ev.Thread(), ev.Stack())
    	}
    	if from == trace.GoSyscall {
    		// Exiting syscall.
    		gs.syscallEnd(ev.Time(), to != trace.GoRunning, ctx)
    	}
    
    	// Handle syscalls.
    	if to == trace.GoSyscall {
    		start := ev.Time()
    		if from == trace.GoUndetermined {
    			// Back-date the event to the start of the trace.
    			start = ctx.startTime
    		}
    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/trace/summary.go

    					regions := creatorG.activeRegions
    					s := regions[len(regions)-1]
    					g.activeRegions = []*UserRegionSummary{{TaskID: s.TaskID, Start: ev}}
    				}
    				s.gs[g.ID] = g
    			case GoRunning:
    				// Record execution time as we transition out of running
    				g.ExecTime += ev.Time().Sub(g.lastStartTime)
    				g.lastStartTime = 0
    			case GoWaiting:
    				// Record block time as we transition out of waiting.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  10. src/internal/trace/oldtrace.go

    			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
    		}
    	case oldtrace.EvGoStartLabel:
    		it.extra = []Event{{
    			ctx: schedCtx{
    				G: GoID(ev.G),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 17.2K bytes
    - Viewed (0)
Back to top