Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for procStateTransition (0.24 sec)

  1. src/internal/trace/event.go

    		panic("StateTransition called on non-StateTransition event")
    	}
    	var s StateTransition
    	switch e.base.typ {
    	case go122.EvProcStart:
    		s = procStateTransition(ProcID(e.base.args[0]), ProcIdle, ProcRunning)
    	case go122.EvProcStop:
    		s = procStateTransition(e.ctx.P, ProcRunning, ProcIdle)
    	case go122.EvProcSteal:
    		// N.B. ordering.advance populates e.base.extra.
    		beforeState := ProcRunning
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:39:00 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  2. src/internal/trace/resources.go

    	return StateTransition{
    		Resource: ResourceID{Kind: ResourceGoroutine, id: int64(id)},
    		oldState: uint8(from),
    		newState: uint8(to),
    	}
    }
    
    func procStateTransition(id ProcID, from, to ProcState) StateTransition {
    	return StateTransition{
    		Resource: ResourceID{Kind: ResourceProc, id: int64(id)},
    		oldState: uint8(from),
    		newState: uint8(to),
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top