Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Matloob (0.23 sec)

  1. src/cmd/internal/telemetry/telemetry.go

    // and value.String() for the flag's value.
    func CountFlagValue(prefix string, flagSet flag.FlagSet, flagName string) {
    	// TODO(matloob): Maybe pass in a list of flagNames if we end up counting
    	// values for more than one?
    	// TODO(matloob): Add this to x/telemetry?
    	flagSet.Visit(func(f *flag.Flag) {
    		if f.Name == flagName {
    			counter.New(prefix + f.Name + ":" + f.Value.String()).Inc()
    		}
    	})
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:47:30 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/runtime/pprof/label.go

    // A label overwrites a prior label with the same key.
    func WithLabels(ctx context.Context, labels LabelSet) context.Context {
    	parentLabels := labelValue(ctx)
    	childLabels := make(labelMap, len(parentLabels))
    	// TODO(matloob): replace the map implementation with something
    	// more efficient so creating a child context WithLabels doesn't need
    	// to clone the map.
    	for k, v := range parentLabels {
    		childLabels[k] = v
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top