aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/prof/doc.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2010-01-11 16:53:45 -0800
committerRob Pike <r@golang.org>2010-01-11 16:53:45 -0800
commit937caef8faaf358ccc92ba91238d1fb4ffc19fa7 (patch)
tree1b29fb4c69bbffcc92995b4384740ab0302e403e /src/cmd/prof/doc.go
parent3c7534104ab6ee46d20a81dbfc2f7d6198ac1d9e (diff)
downloadgo-937caef8faaf358ccc92ba91238d1fb4ffc19fa7.tar.xz
add pprof output format to prof.
amd64 linux only. R=rsc CC=golang-dev https://golang.org/cl/186077
Diffstat (limited to 'src/cmd/prof/doc.go')
-rw-r--r--src/cmd/prof/doc.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/cmd/prof/doc.go b/src/cmd/prof/doc.go
index 1493c641d2..1f2209f04b 100644
--- a/src/cmd/prof/doc.go
+++ b/src/cmd/prof/doc.go
@@ -19,10 +19,15 @@ statistics.
Usage: prof -p pid [-t total_secs] [-d delta_msec] [6.out args ...]
-The formats (default -h) are:
+The output modes (default -h) are:
+ -P file.prof:
+ Write the profile information to file.prof, in the format used by pprof.
+ At the moment, this only works on Linux amd64 binaries and requires that the
+ binary be written using 6l -e to produce ELF debug info.
+ See http://code.google.com/p/google-perftools for details.
-h: histograms
- How many times a sample occurred at each location
+ How many times a sample occurred at each location.
-f: dynamic functions
At each sample period, print the name of the executing function.
-l: dynamic file and line numbers