Commit 682ffae6 authored by Russ Cox's avatar Russ Cox

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: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 53cc6917
...@@ -23,9 +23,9 @@ import ( ...@@ -23,9 +23,9 @@ import (
"cmd/internal/pprof/commands" "cmd/internal/pprof/commands"
"cmd/internal/pprof/plugin" "cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile"
"cmd/internal/pprof/report" "cmd/internal/pprof/report"
"cmd/internal/pprof/tempfile" "cmd/internal/pprof/tempfile"
"internal/pprof/profile"
) )
// PProf acquires a profile, and symbolizes it using a profile // PProf acquires a profile, and symbolizes it using a profile
......
...@@ -14,7 +14,7 @@ import ( ...@@ -14,7 +14,7 @@ import (
"cmd/internal/pprof/commands" "cmd/internal/pprof/commands"
"cmd/internal/pprof/plugin" "cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile" "internal/pprof/profile"
) )
var profileFunctionNames = []string{} var profileFunctionNames = []string{}
......
...@@ -17,7 +17,7 @@ import ( ...@@ -17,7 +17,7 @@ import (
"time" "time"
"cmd/internal/pprof/plugin" "cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile" "internal/pprof/profile"
) )
// FetchProfile reads from a data source (network, file) and generates a // FetchProfile reads from a data source (network, file) and generates a
......
...@@ -13,7 +13,7 @@ import ( ...@@ -13,7 +13,7 @@ import (
"strings" "strings"
"time" "time"
"cmd/internal/pprof/profile" "internal/pprof/profile"
) )
// A FlagSet creates and parses command-line flags. // A FlagSet creates and parses command-line flags.
......
...@@ -18,7 +18,7 @@ import ( ...@@ -18,7 +18,7 @@ import (
"time" "time"
"cmd/internal/pprof/plugin" "cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile" "internal/pprof/profile"
) )
// Generate generates a report as directed by the Report. // Generate generates a report as directed by the Report.
......
...@@ -14,7 +14,7 @@ import ( ...@@ -14,7 +14,7 @@ import (
"strings" "strings"
"cmd/internal/pprof/plugin" "cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile" "internal/pprof/profile"
) )
// Symbolize adds symbol and line number information to all locations // Symbolize adds symbol and line number information to all locations
......
...@@ -15,7 +15,7 @@ import ( ...@@ -15,7 +15,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"cmd/internal/pprof/profile" "internal/pprof/profile"
) )
var ( var (
......
...@@ -19,9 +19,9 @@ import ( ...@@ -19,9 +19,9 @@ import (
"cmd/internal/pprof/driver" "cmd/internal/pprof/driver"
"cmd/internal/pprof/fetch" "cmd/internal/pprof/fetch"
"cmd/internal/pprof/plugin" "cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile"
"cmd/internal/pprof/symbolizer" "cmd/internal/pprof/symbolizer"
"cmd/internal/pprof/symbolz" "cmd/internal/pprof/symbolz"
"internal/pprof/profile"
) )
func main() { func main() {
......
...@@ -8,8 +8,8 @@ package main ...@@ -8,8 +8,8 @@ package main
import ( import (
"bufio" "bufio"
"cmd/internal/pprof/profile"
"fmt" "fmt"
"internal/pprof/profile"
"internal/trace" "internal/trace"
"io" "io"
"io/ioutil" "io/ioutil"
......
...@@ -257,6 +257,7 @@ var pkgDeps = map[string][]string{ ...@@ -257,6 +257,7 @@ var pkgDeps = map[string][]string{
"index/suffixarray": {"L4", "regexp"}, "index/suffixarray": {"L4", "regexp"},
"internal/singleflight": {"sync"}, "internal/singleflight": {"sync"},
"internal/trace": {"L4", "OS"}, "internal/trace": {"L4", "OS"},
"internal/pprof/profile": {"L4", "OS", "compress/gzip", "regexp"},
"math/big": {"L4"}, "math/big": {"L4"},
"mime": {"L4", "OS", "syscall", "internal/syscall/windows/registry"}, "mime": {"L4", "OS", "syscall", "internal/syscall/windows/registry"},
"mime/quotedprintable": {"L4"}, "mime/quotedprintable": {"L4"},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment