Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for EventString (0.28 sec)

  1. src/internal/trace/order.go

    	state, ok := o.pStates[curCtx.P]
    	if !ok {
    		return curCtx, false, fmt.Errorf("event %s for proc (%v) that doesn't exist", go122.EventString(ev.typ), curCtx.P)
    	}
    	if state.status != go122.ProcRunning && state.status != go122.ProcSyscall {
    		return curCtx, false, fmt.Errorf("%s event for proc that's not %s or %s", go122.EventString(ev.typ), go122.ProcRunning, go122.ProcSyscall)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  2. src/internal/trace/event.go

    	case go122.EvHeapGoal:
    		m.Name = "/gc/heap/goal:bytes"
    		m.Value = Value{kind: ValueUint64, scalar: e.base.args[0]}
    	default:
    		panic(fmt.Sprintf("internal error: unexpected event type for Metric kind: %s", go122.EventString(e.base.typ)))
    	}
    	return m
    }
    
    // Label returns details about a Label event.
    //
    // Panics if Kind != EventLabel.
    func (e Event) Label() Label {
    	if e.Kind() != EventLabel {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:39:00 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  3. src/internal/trace/batch.go

    	if err != nil {
    		return batch{}, 0, err
    	}
    	if typ := event.Type(b); typ != go122.EvEventBatch && typ != go122.EvExperimentalBatch {
    		return batch{}, 0, fmt.Errorf("expected batch event, got %s", go122.EventString(typ))
    	}
    
    	// Read the experiment of we have one.
    	exp := event.NoExperiment
    	if event.Type(b) == go122.EvExperimentalBatch {
    		e, err := r.ReadByte()
    		if err != nil {
    			return batch{}, 0, err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/internal/trace/event/go122/event.go

    	EvGoroutineStack      // stack exists [timestamp, id, order]
    	EvGoroutineStackAlloc // stack alloc [timestamp, id, order]
    	EvGoroutineStackFree  // stack free [timestamp, id]
    )
    
    // EventString returns the name of a Go 1.22 event.
    func EventString(typ event.Type) string {
    	if int(typ) < len(specs) {
    		return specs[typ].Name
    	}
    	return fmt.Sprintf("Invalid(%d)", typ)
    }
    
    func Specs() []event.Spec {
    	return specs[:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 14.8K bytes
    - Viewed (0)
Back to top