Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CountFlagValue (0.1 sec)

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

    func NewStackCounter(name string, depth int) dummyCounter                 { return dummyCounter{} }
    func CountFlags(name string, flagSet flag.FlagSet)                        {}
    func CountFlagValue(prefix string, flagSet flag.FlagSet, flagName string) {}
    func Mode() string                                                        { return "" }
    func SetMode(mode string) error                                           { return nil }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 20:16:39 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. src/cmd/internal/telemetry/telemetry.go

    func CountFlags(prefix string, flagSet flag.FlagSet) {
    	counter.CountFlags(prefix, flagSet)
    }
    
    // CountFlagValue creates a counter for the flag value
    // if it is set and increments the counter. The name of the
    // counter is the concatenation of prefix, the flagName, ":",
    // and value.String() for the flag's value.
    func CountFlagValue(prefix string, flagSet flag.FlagSet, flagName string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:47:30 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. src/cmd/go/main.go

    		base.SetFromGOFLAGS(&cmd.Flag)
    		cmd.Flag.Parse(args[1:])
    		flagCounterPrefix := "go/" + strings.ReplaceAll(cfg.CmdName, " ", "-") + "/flag"
    		telemetry.CountFlags(flagCounterPrefix+":", cmd.Flag)
    		telemetry.CountFlagValue(flagCounterPrefix+"/", cmd.Flag, "buildmode")
    		args = cmd.Flag.Args()
    	}
    
    	if cfg.DebugRuntimeTrace != "" {
    		f, err := os.Create(cfg.DebugRuntimeTrace)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:09:11 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top