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: Brad Fitzpatrick <bradfitz@golang.org>
"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.
"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
"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{}
"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
"strings"
"time"
- "cmd/pprof/internal/profile"
+ "cmd/internal/pprof/profile"
)
// A FlagSet creates and parses command-line flags.
"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.
"strconv"
"strings"
- "cmd/pprof/internal/plugin"
+ "cmd/internal/pprof/plugin"
)
// printSource prints an annotated source listing, include all
"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
"strconv"
"strings"
- "cmd/pprof/internal/profile"
+ "cmd/internal/pprof/profile"
)
var (
"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() {