Преглед изворни кода

document diff_base flag (#384) (#390)

* record diff base profile label key/value constant (#384)

* address comment
Margaret Nolan пре 7 година
родитељ
комит
a8644067d5
No account linked to committer's email address
1 измењених фајлова са 4 додато и 3 уклоњено
  1. 4
    3
      internal/driver/cli.go

+ 4
- 3
internal/driver/cli.go Прегледај датотеку

@@ -45,8 +45,8 @@ type source struct {
45 45
 func parseFlags(o *plugin.Options) (*source, []string, error) {
46 46
 	flag := o.Flagset
47 47
 	// Comparisons.
48
-	flagBase := flag.StringList("base", "", "Source for base profile for profile subtraction")
49
-	flagDiffBase := flag.StringList("diff_base", "", "Source for diff base profile for comparison")
48
+	flagDiffBase := flag.StringList("diff_base", "", "Source of base profile for comparison")
49
+	flagBase := flag.StringList("base", "", "Source of base profile for profile subtraction")
50 50
 	// Source options.
51 51
 	flagSymbolize := flag.String("symbolize", "", "Options for profile symbolization")
52 52
 	flagBuildID := flag.String("buildid", "", "Override build id for first mapping")
@@ -312,7 +312,8 @@ var usageMsgSrc = "\n\n" +
312 312
 	"    -buildid              Override build id for main binary\n" +
313 313
 	"    -add_comment          Free-form annotation to add to the profile\n" +
314 314
 	"                          Displayed on some reports or with pprof -comments\n" +
315
-	"    -base source          Source of profile to use as baseline\n" +
315
+	"    -diff_base source     Source of base profile for comparison\n" +
316
+	"    -base source          Source of base profile for profile subtraction\n" +
316 317
 	"    profile.pb.gz         Profile in compressed protobuf format\n" +
317 318
 	"    legacy_profile        Profile in legacy pprof format\n" +
318 319
 	"    http://host/profile   URL for profile handler to retrieve\n" +