code: func updateFlags(f flagsInstalled) error {
  	vars := pprofVariables
  	groups := map[string]string{}
  	for n, v := range f.bools {
  		vars.set(n, fmt.Sprint(*v))
  		if *v {
  			g := vars[n].group
  			if g != "" && groups[g] != "" {
  				return fmt.Errorf("conflicting options %q and %q set", n, groups[g])
  			}
  			groups[g] = n
  		}
  	}
  	for n, v := range f.ints {
  		vars.set(n, fmt.Sprint(*v))
  	}
  	for n, v := range f.floats {
  		vars.set(n, fmt.Sprint(*v))
  	}
  	for n, v := range f.strings {
  		vars.set(n, *v)
  	}
  	return nil
  }
docs: // updateFlags updates the pprof variables according to the flags
  // parsed in the command line.