Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for EventString (0.29 sec)

  1. 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)
  2. 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