diff options
author | Russ Cox <rsc@golang.org> | 2014-11-09 20:20:06 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-11-09 20:20:06 -0500 |
commit | 752635315e7df0708e13e6aa8c940d165324c834 (patch) | |
tree | e5c97dda7a4096cf1461435e572a76db17e28e5f /src/cmd/pprof | |
parent | c8ef4f640b3cdbcd29cbd5432e5b7aa5693ab76f (diff) | |
download | go-752635315e7df0708e13e6aa8c940d165324c834.tar.gz |
cmd/pprof: install as go tool pprof
LGTM=bradfitz, r
R=r, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/168320043
Diffstat (limited to 'src/cmd/pprof')
-rw-r--r-- | src/cmd/pprof/README | 8 | ||||
-rw-r--r-- | src/cmd/pprof/doc.go | 12 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/cmd/pprof/README b/src/cmd/pprof/README new file mode 100644 index 000000000..a728ef235 --- /dev/null +++ b/src/cmd/pprof/README @@ -0,0 +1,8 @@ +The pprof in this directory is adapted from the pprof used inside Google +for C++, Java, and Go programs. Because it was developed for that broader +context, it is overgeneralized when used here for the specific use case +of profiling standard Go programs. However, we've left the abstractions +intact in order to share updates between this copy and Google's internal one. + +Please do not take the level of abstraction in this program as an example +to follow in your own. diff --git a/src/cmd/pprof/doc.go b/src/cmd/pprof/doc.go new file mode 100644 index 000000000..c6ff11d10 --- /dev/null +++ b/src/cmd/pprof/doc.go @@ -0,0 +1,12 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Pprof interprets and displays profiles of Go programs. +// +// Usage: +// +// go tool pprof binary profile +// +// For more information, see http://blog.golang.org/profiling-go-programs. +package main |