INNER CODE UNIT · Go

printUsage

yaklang/yaklang · cmd/yak-mitm-perf/main.go:34

func printUsage() {
	fmt.Fprintln(os.Stderr, `Usage:
  go run ./cmd/yak-mitm-perf capture [options]
  go run ./cmd/yak-mitm-perf compare -baseline before.json -candidate after.json [options]

Capture profiles:
  smoke     Fast, one low-resource repetition. Suitable before every local change.
  standard  Three repetitions and a larger seeded DB. Suitable before/after a PR.
  stress    Explicit higher load. Still capped by -gomaxprocs and -memory-limit.

Run "capture -h" or "compare -h" for command options.`)
}

func newFlagSet(name string) *flag.FlagSet {
	fs := flag.NewFlagSet(name, flag.ContinueOnError)
	fs.SetOutput(os.Stderr)
	return fs
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…