From 937caef8faaf358ccc92ba91238d1fb4ffc19fa7 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 11 Jan 2010 16:53:45 -0800 Subject: add pprof output format to prof. amd64 linux only. R=rsc CC=golang-dev https://golang.org/cl/186077 --- src/cmd/prof/doc.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/cmd/prof/doc.go') 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 -- cgit v1.3