1
0
mirror of https://github.com/golang/go synced 2024-11-19 13:54:56 -07:00

cmd/pprof: install as go tool pprof

LGTM=bradfitz, r
R=r, bradfitz
CC=golang-codereviews
https://golang.org/cl/168320043
This commit is contained in:
Russ Cox 2014-11-09 20:20:06 -05:00
parent b53bdd496c
commit af3e02e404
3 changed files with 21 additions and 0 deletions

View File

@ -399,6 +399,7 @@ var goTools = map[string]targetDir{
"cmd/nm": toTool, "cmd/nm": toTool,
"cmd/objdump": toTool, "cmd/objdump": toTool,
"cmd/pack": toTool, "cmd/pack": toTool,
"cmd/pprof": toTool,
"cmd/yacc": toTool, "cmd/yacc": toTool,
"golang.org/x/tools/cmd/cover": toTool, "golang.org/x/tools/cmd/cover": toTool,
"golang.org/x/tools/cmd/godoc": toBin, "golang.org/x/tools/cmd/godoc": toBin,

8
src/cmd/pprof/README Normal file
View File

@ -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.

12
src/cmd/pprof/doc.go Normal file
View File

@ -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