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: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 9743e4b0
......@@ -16,10 +16,10 @@ import (
"strings"
"time"
"cmd/pprof/internal/plugin"
"cmd/pprof/internal/report"
"cmd/pprof/internal/svg"
"cmd/pprof/internal/tempfile"
"cmd/internal/pprof/plugin"
"cmd/internal/pprof/report"
"cmd/internal/pprof/svg"
"cmd/internal/pprof/tempfile"
)
// Commands describes the commands accepted by pprof.
......
......@@ -21,11 +21,11 @@ import (
"sync"
"time"
"cmd/pprof/internal/commands"
"cmd/pprof/internal/plugin"
"cmd/pprof/internal/profile"
"cmd/pprof/internal/report"
"cmd/pprof/internal/tempfile"
"cmd/internal/pprof/commands"
"cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile"
"cmd/internal/pprof/report"
"cmd/internal/pprof/tempfile"
)
// PProf acquires a profile, and symbolizes it using a profile
......
......@@ -12,9 +12,9 @@ import (
"strconv"
"strings"
"cmd/pprof/internal/commands"
"cmd/pprof/internal/plugin"
"cmd/pprof/internal/profile"
"cmd/internal/pprof/commands"
"cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile"
)
var profileFunctionNames = []string{}
......
......@@ -16,8 +16,8 @@ import (
"strings"
"time"
"cmd/pprof/internal/plugin"
"cmd/pprof/internal/profile"
"cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile"
)
// FetchProfile reads from a data source (network, file) and generates a
......
......@@ -13,7 +13,7 @@ import (
"strings"
"time"
"cmd/pprof/internal/profile"
"cmd/internal/pprof/profile"
)
// A FlagSet creates and parses command-line flags.
......
......@@ -17,8 +17,8 @@ import (
"strings"
"time"
"cmd/pprof/internal/plugin"
"cmd/pprof/internal/profile"
"cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile"
)
// Generate generates a report as directed by the Report.
......
......@@ -18,7 +18,7 @@ import (
"strconv"
"strings"
"cmd/pprof/internal/plugin"
"cmd/internal/pprof/plugin"
)
// printSource prints an annotated source listing, include all
......
......@@ -13,8 +13,8 @@ import (
"path/filepath"
"strings"
"cmd/pprof/internal/plugin"
"cmd/pprof/internal/profile"
"cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile"
)
// Symbolize adds symbol and line number information to all locations
......
......@@ -15,7 +15,7 @@ import (
"strconv"
"strings"
"cmd/pprof/internal/profile"
"cmd/internal/pprof/profile"
)
var (
......
......@@ -15,13 +15,13 @@ import (
"sync"
"cmd/internal/objfile"
"cmd/pprof/internal/commands"
"cmd/pprof/internal/driver"
"cmd/pprof/internal/fetch"
"cmd/pprof/internal/plugin"
"cmd/pprof/internal/profile"
"cmd/pprof/internal/symbolizer"
"cmd/pprof/internal/symbolz"
"cmd/internal/pprof/commands"
"cmd/internal/pprof/driver"
"cmd/internal/pprof/fetch"
"cmd/internal/pprof/plugin"
"cmd/internal/pprof/profile"
"cmd/internal/pprof/symbolizer"
"cmd/internal/pprof/symbolz"
)
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