Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,222 for case1 (0.04 sec)

  1. src/internal/trace/oldtrace_test.go

    					// the user_task_region_* test cases. We only check for the
    					// Go 1.21 traces because earlier traces used different
    					// strings.
    					switch ev.Kind() {
    					case trace.EventRegionBegin, trace.EventRegionEnd:
    						if _, ok := validRegions[ev.Region().Type]; !ok {
    							t.Fatalf("converted event has unexpected region type:\n%s", ev)
    						}
    					case trace.EventTaskBegin, trace.EventTaskEnd:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. src/path/filepath/path_windows.go

    				b.WriteString(`.\`)
    			}
    		case lastChar == ':':
    			// If the path ends in a colon, keep the path relative to the current directory
    			// on a drive and don't add a separator. Preserve leading slashes in the next
    			// path element, which may make the path absolute.
    			//
    			// 	Join(`C:`, `f`) = `C:f`
    			//	Join(`C:`, `\f`) = `C:\f`
    		default:
    			// In all other cases, add a separator between elements.
    			b.WriteByte('\\')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. src/runtime/tracestatus.go

    	// N.B. Ignore the _Gscan bit. We don't model it in the tracer.
    	var tgs traceGoStatus
    	switch status &^ _Gscan {
    	case _Grunnable:
    		tgs = traceGoRunnable
    	case _Grunning, _Gcopystack:
    		tgs = traceGoRunning
    	case _Gsyscall:
    		tgs = traceGoSyscall
    	case _Gwaiting, _Gpreempted:
    		// There are a number of cases where a G might end up in
    		// _Gwaiting but it's actually running in a non-preemptive
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. operator/cmd/mesh/profile-dump.go

    	switch outputFormat {
    	case jsonOutput, yamlOutput, flagsOutput:
    	default:
    		return fmt.Errorf("unknown output format: %s", outputFormat)
    	}
    	return nil
    }
    
    // yamlToFormat converts the generated yaml config to the expected format
    func yamlToFormat(yaml, outputFormat string) (string, error) {
    	var output string
    	switch outputFormat {
    	case jsonOutput:
    		j, err := yamlToPrettyJSON(yaml)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. src/internal/trace/internal/oldtrace/order.go

    	// Note that we have an explicit return in each case, as that produces slightly better code (tested on Go 1.19).
    
    	switch ev.Type {
    	case EvGoCreate:
    		g = ev.Args[0]
    		init = gState{0, gDead}
    		next = gState{1, gRunnable}
    		return
    	case EvGoWaiting, EvGoInSyscall:
    		g = ev.G
    		init = gState{1, gRunnable}
    		next = gState{2, gWaiting}
    		return
    	case EvGoStart, EvGoStartLabel:
    		g = ev.G
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. src/runtime/tracetime.go

    // platforms where osHasLowResClock is true, because the system clock
    // isn't granular enough to get useful information out of a trace in
    // many cases.
    //
    // This makes absolute values of timestamp diffs smaller, and so they are
    // encoded in fewer bytes.
    //
    // The target resolution in all cases is 64 nanoseconds.
    // This is based on the fact that fundamentally the execution tracer won't emit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/positions.go

    		// case *MapType:
    		// case *ChanType:
    
    		// statements
    		// case *EmptyStmt:
    		// case *LabeledStmt:
    		// case *BlockStmt:
    		// case *ExprStmt:
    		case *SendStmt:
    			m = n.Chan
    		// case *DeclStmt:
    		case *AssignStmt:
    			m = n.Lhs
    		// case *BranchStmt:
    		// case *CallStmt:
    		// case *ReturnStmt:
    		// case *IfStmt:
    		// case *ForStmt:
    		// case *SwitchStmt:
    		// case *SelectStmt:
    
    		// helper nodes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/under.go

    // If x and y are identical channels but for their direction
    // and one of them is unrestricted, match returns the channel
    // with the restricted direction.
    // In all other cases, match returns nil.
    func match(x, y Type) Type {
    	// Common case: we don't have channels.
    	if Identical(x, y) {
    		return x
    	}
    
    	// We may have channels that differ in direction only.
    	if x, _ := x.(*Chan); x != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 22:34:27 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. pilot/pkg/server/instance_test.go

    		completed: atomic.NewBool(false),
    		d:         d,
    		stop:      stop,
    	}
    }
    
    func (c *fakeComponent) Run(stop <-chan struct{}) error {
    	c.started.Store(true)
    	select {
    	case <-time.After(c.d):
    	case <-c.stop: // ignore incoming stop; for test purposes we use our own stop
    	}
    	c.completed.Store(true)
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 23:02:39 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. src/go/types/selection.go

    //
    //	"field (T) f int"
    //	"method (T) f(X) Y"
    //	"method expr (T) f(X) Y"
    func SelectionString(s *Selection, qf Qualifier) string {
    	var k string
    	switch s.kind {
    	case FieldVal:
    		k = "field "
    	case MethodVal:
    		k = "method "
    	case MethodExpr:
    		k = "method expr "
    	default:
    		panic("unreachable")
    	}
    	var buf bytes.Buffer
    	buf.WriteString(k)
    	buf.WriteByte('(')
    	WriteType(&buf, s.Recv(), qf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top