瀏覽代碼

Add legacy options to command-line help (#202)

Raul Silvera 7 年之前
父節點
當前提交
3a469c2846
共有 1 個檔案被更改,包括 9 行新增0 行删除
  1. 9
    0
      internal/driver/cli.go

+ 9
- 0
internal/driver/cli.go 查看文件

@@ -295,6 +295,15 @@ var usageMsgVars = "\n\n" +
295 295
 	"   -http host:port        Provide web based interface at host:port\n" +
296 296
 	"   -tools                 Search path for object tools\n" +
297 297
 	"\n" +
298
+	"  Legacy convenience options:\n" +
299
+	"   -inuse_space           Same as -sample_index=inuse_space\n" +
300
+	"   -inuse_objects         Same as -sample_index=inuse_objects\n" +
301
+	"   -alloc_space           Same as -sample_index=alloc_space\n" +
302
+	"   -alloc_objects         Same as -sample_index=alloc_objects\n" +
303
+	"   -total_delay           Same as -sample_index=delay\n" +
304
+	"   -contentions           Same as -sample_index=contentions\n" +
305
+	"   -mean_delay            Same as -mean -sample_index=delay\n" +
306
+	"\n" +
298 307
 	"  Environment Variables:\n" +
299 308
 	"   PPROF_TMPDIR       Location for saved profiles (default $HOME/pprof)\n" +
300 309
 	"   PPROF_TOOLS        Search path for object-level tools\n" +