Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isConfigurable (0.14 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/driver/config.go

    		}
    		*ptr = v
    	default:
    		panic(fmt.Sprintf("unsupported config field type %v", f.field.Type))
    	}
    	return nil
    }
    
    // isConfigurable returns true if name is either the name of a config field, or
    // a valid value for a multi-choice config field.
    func isConfigurable(name string) bool {
    	_, ok := configFieldMap[name]
    	return ok
    }
    
    // isBoolConfig returns true if name is either name of a boolean config field,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go

    				if len(s) == 2 {
    					value = s[1]
    					if comment := strings.LastIndex(value, commentStart); comment != -1 {
    						value = value[:comment]
    					}
    					value = strings.TrimSpace(value)
    				}
    				if isConfigurable(name) {
    					// All non-bool options require inputs
    					if len(s) == 1 && !isBoolConfig(name) {
    						o.UI.PrintErr(fmt.Errorf("please specify a value, e.g. %s=<val>", name))
    						continue
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 10.6K bytes
    - Viewed (0)
Back to top