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:
parent
53cc69170a
commit
682ffae6db
@ -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
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
|
||||
"cmd/internal/pprof/commands"
|
||||
"cmd/internal/pprof/plugin"
|
||||
"cmd/internal/pprof/profile"
|
||||
"internal/pprof/profile"
|
||||
)
|
||||
|
||||
var profileFunctionNames = []string{}
|
||||
|
@ -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
|
||||
|
@ -13,7 +13,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"cmd/internal/pprof/profile"
|
||||
"internal/pprof/profile"
|
||||
)
|
||||
|
||||
// A FlagSet creates and parses command-line flags.
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -15,7 +15,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"cmd/internal/pprof/profile"
|
||||
"internal/pprof/profile"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -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() {
|
||||
|
@ -8,8 +8,8 @@ package main
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"cmd/internal/pprof/profile"
|
||||
"fmt"
|
||||
"internal/pprof/profile"
|
||||
"internal/trace"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
|
@ -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"},
|
||||
|
Loading…
Reference in New Issue
Block a user