1
0
mirror of https://github.com/golang/go synced 2024-11-20 07:54:39 -07:00

internal/pprof/profile: new package, moved from cmd/internal/pprof/profile

This allows both the runtime and the cmd/pprof code to use the package,
just like we do for internal/trace.

Change-Id: I7606977284e1def36c9647354c58e7c1e93dba6b
Reviewed-on: https://go-review.googlesource.com/32452
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Russ Cox 2016-10-31 12:07:13 -04:00
parent 53cc69170a
commit 682ffae6db
18 changed files with 10 additions and 9 deletions

View File

@ -23,9 +23,9 @@ import (
"cmd/internal/pprof/commands"
"cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile"
"cmd/internal/pprof/report"
"cmd/internal/pprof/tempfile"
"internal/pprof/profile"
)
// PProf acquires a profile, and symbolizes it using a profile

View File

@ -14,7 +14,7 @@ import (
"cmd/internal/pprof/commands"
"cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile"
"internal/pprof/profile"
)
var profileFunctionNames = []string{}

View File

@ -17,7 +17,7 @@ import (
"time"
"cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile"
"internal/pprof/profile"
)
// FetchProfile reads from a data source (network, file) and generates a

View File

@ -13,7 +13,7 @@ import (
"strings"
"time"
"cmd/internal/pprof/profile"
"internal/pprof/profile"
)
// A FlagSet creates and parses command-line flags.

View File

@ -18,7 +18,7 @@ import (
"time"
"cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile"
"internal/pprof/profile"
)
// Generate generates a report as directed by the Report.

View File

@ -14,7 +14,7 @@ import (
"strings"
"cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile"
"internal/pprof/profile"
)
// Symbolize adds symbol and line number information to all locations

View File

@ -15,7 +15,7 @@ import (
"strconv"
"strings"
"cmd/internal/pprof/profile"
"internal/pprof/profile"
)
var (

View File

@ -19,9 +19,9 @@ import (
"cmd/internal/pprof/driver"
"cmd/internal/pprof/fetch"
"cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile"
"cmd/internal/pprof/symbolizer"
"cmd/internal/pprof/symbolz"
"internal/pprof/profile"
)
func main() {

View File

@ -8,8 +8,8 @@ package main
import (
"bufio"
"cmd/internal/pprof/profile"
"fmt"
"internal/pprof/profile"
"internal/trace"
"io"
"io/ioutil"

View File

@ -257,6 +257,7 @@ var pkgDeps = map[string][]string{
"index/suffixarray": {"L4", "regexp"},
"internal/singleflight": {"sync"},
"internal/trace": {"L4", "OS"},
"internal/pprof/profile": {"L4", "OS", "compress/gzip", "regexp"},
"math/big": {"L4"},
"mime": {"L4", "OS", "syscall", "internal/syscall/windows/registry"},
"mime/quotedprintable": {"L4"},