Commit 204b6f48 authored by Dmitry Vyukov's avatar Dmitry Vyukov

cmd/pprof/internal: move to cmd/internal/pprof

Make internal pprof packages available to cmd/trace.
cmd/trace needs access to them to generate symbolized
svg profiles (create and serialize Profile struct).
And potentially generate svg programmatically instead
of invoking go tool pprof.

Change-Id: Iafd0c87ffdd4ddc081093be0b39761f19507907a
Reviewed-on: https://go-review.googlesource.com/21870
Run-TryBot: Dmitry Vyukov <dvyukov@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 9743e4b0
...@@ -16,10 +16,10 @@ import ( ...@@ -16,10 +16,10 @@ import (
"strings" "strings"
"time" "time"
"cmd/pprof/internal/plugin" "cmd/internal/pprof/plugin"
"cmd/pprof/internal/report" "cmd/internal/pprof/report"
"cmd/pprof/internal/svg" "cmd/internal/pprof/svg"
"cmd/pprof/internal/tempfile" "cmd/internal/pprof/tempfile"
) )
// Commands describes the commands accepted by pprof. // Commands describes the commands accepted by pprof.
......
...@@ -21,11 +21,11 @@ import ( ...@@ -21,11 +21,11 @@ import (
"sync" "sync"
"time" "time"
"cmd/pprof/internal/commands" "cmd/internal/pprof/commands"
"cmd/pprof/internal/plugin" "cmd/internal/pprof/plugin"
"cmd/pprof/internal/profile" "cmd/internal/pprof/profile"
"cmd/pprof/internal/report" "cmd/internal/pprof/report"
"cmd/pprof/internal/tempfile" "cmd/internal/pprof/tempfile"
) )
// PProf acquires a profile, and symbolizes it using a profile // PProf acquires a profile, and symbolizes it using a profile
......
...@@ -12,9 +12,9 @@ import ( ...@@ -12,9 +12,9 @@ import (
"strconv" "strconv"
"strings" "strings"
"cmd/pprof/internal/commands" "cmd/internal/pprof/commands"
"cmd/pprof/internal/plugin" "cmd/internal/pprof/plugin"
"cmd/pprof/internal/profile" "cmd/internal/pprof/profile"
) )
var profileFunctionNames = []string{} var profileFunctionNames = []string{}
......
...@@ -16,8 +16,8 @@ import ( ...@@ -16,8 +16,8 @@ import (
"strings" "strings"
"time" "time"
"cmd/pprof/internal/plugin" "cmd/internal/pprof/plugin"
"cmd/pprof/internal/profile" "cmd/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/pprof/internal/profile" "cmd/internal/pprof/profile"
) )
// A FlagSet creates and parses command-line flags. // A FlagSet creates and parses command-line flags.
......
...@@ -17,8 +17,8 @@ import ( ...@@ -17,8 +17,8 @@ import (
"strings" "strings"
"time" "time"
"cmd/pprof/internal/plugin" "cmd/internal/pprof/plugin"
"cmd/pprof/internal/profile" "cmd/internal/pprof/profile"
) )
// Generate generates a report as directed by the Report. // Generate generates a report as directed by the Report.
......
...@@ -18,7 +18,7 @@ import ( ...@@ -18,7 +18,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"cmd/pprof/internal/plugin" "cmd/internal/pprof/plugin"
) )
// printSource prints an annotated source listing, include all // printSource prints an annotated source listing, include all
......
...@@ -13,8 +13,8 @@ import ( ...@@ -13,8 +13,8 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"cmd/pprof/internal/plugin" "cmd/internal/pprof/plugin"
"cmd/pprof/internal/profile" "cmd/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/pprof/internal/profile" "cmd/internal/pprof/profile"
) )
var ( var (
......
...@@ -15,13 +15,13 @@ import ( ...@@ -15,13 +15,13 @@ import (
"sync" "sync"
"cmd/internal/objfile" "cmd/internal/objfile"
"cmd/pprof/internal/commands" "cmd/internal/pprof/commands"
"cmd/pprof/internal/driver" "cmd/internal/pprof/driver"
"cmd/pprof/internal/fetch" "cmd/internal/pprof/fetch"
"cmd/pprof/internal/plugin" "cmd/internal/pprof/plugin"
"cmd/pprof/internal/profile" "cmd/internal/pprof/profile"
"cmd/pprof/internal/symbolizer" "cmd/internal/pprof/symbolizer"
"cmd/pprof/internal/symbolz" "cmd/internal/pprof/symbolz"
) )
func main() { func main() {
......
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