]> Cypherpunks repositories - gostls13.git/commitdiff
6prof: more accurate usage message.
authorDavid Symonds <dsymonds@golang.org>
Thu, 30 Sep 2010 03:17:18 +0000 (20:17 -0700)
committerRob Pike <r@golang.org>
Thu, 30 Sep 2010 03:17:18 +0000 (20:17 -0700)
R=r, r2
CC=golang-dev
https://golang.org/cl/2323042

src/cmd/prof/main.c

index 447a4806e25bbe1302a04dbbe144b749a3e04aa6..e57c161536db7672f42d0ad1366434705872f2fb 100644 (file)
@@ -53,7 +53,8 @@ Map *map[32]; // thread maps
 void
 Usage(void)
 {
-       fprint(2, "Usage: prof -p pid [-t total_secs] [-d delta_msec] [6.out args ...]\n");
+       fprint(2, "Usage: prof -p pid [-t total_secs] [-d delta_msec]\n");
+       fprint(2, "       prof [-t total_secs] [-d delta_msec] 6.out args ...\n");
        fprint(2, "\tformats (default -h):\n");
        fprint(2, "\t\t-P file.prof: write [c]pprof output to file.prof\n");
        fprint(2, "\t\t-h: histograms\n");