aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2017-02-17 00:17:26 -0500
committerRuss Cox <rsc@golang.org>2017-02-24 20:45:21 +0000
commit0b8c983ece56b63c433a65fd3de6a411cb2aac87 (patch)
tree046c74afa7c9bce69a4566e9dc02e04f5fe17534 /src
parentcbab65fdfa1cf74f65a480de0447388286169f26 (diff)
downloadgo-0b8c983ece56b63c433a65fd3de6a411cb2aac87.tar.xz
runtime/pprof/internal/profile: move internal/pprof/profile here
Nothing needs internal/pprof anymore except the runtime/pprof tests. Move the package here to prevent new dependencies. Change-Id: Ia119af91cc2b980e0fa03a15f46f69d7f71d2926 Reviewed-on: https://go-review.googlesource.com/37165 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Michael Matloob <matloob@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/trace/pprof.go3
-rw-r--r--src/go/build/deps_test.go94
-rw-r--r--src/runtime/pprof/internal/profile/encode.go (renamed from src/internal/pprof/profile/encode.go)0
-rw-r--r--src/runtime/pprof/internal/profile/filter.go (renamed from src/internal/pprof/profile/filter.go)0
-rw-r--r--src/runtime/pprof/internal/profile/legacy_profile.go (renamed from src/internal/pprof/profile/legacy_profile.go)0
-rw-r--r--src/runtime/pprof/internal/profile/profile.go (renamed from src/internal/pprof/profile/profile.go)3
-rw-r--r--src/runtime/pprof/internal/profile/profile_test.go (renamed from src/internal/pprof/profile/profile_test.go)0
-rw-r--r--src/runtime/pprof/internal/profile/proto.go (renamed from src/internal/pprof/profile/proto.go)0
-rw-r--r--src/runtime/pprof/internal/profile/proto_test.go (renamed from src/internal/pprof/profile/proto_test.go)0
-rw-r--r--src/runtime/pprof/internal/profile/prune.go (renamed from src/internal/pprof/profile/prune.go)0
-rw-r--r--src/runtime/pprof/pprof_test.go2
-rw-r--r--src/runtime/pprof/proto_test.go2
-rw-r--r--src/runtime/pprof/protomem_test.go2
13 files changed, 55 insertions, 51 deletions
diff --git a/src/cmd/trace/pprof.go b/src/cmd/trace/pprof.go
index dea3a749fc..40803ac5f9 100644
--- a/src/cmd/trace/pprof.go
+++ b/src/cmd/trace/pprof.go
@@ -9,13 +9,14 @@ package main
import (
"bufio"
"fmt"
- "internal/pprof/profile"
"internal/trace"
"io"
"io/ioutil"
"net/http"
"os"
"os/exec"
+
+ "github.com/google/pprof/profile"
)
func init() {
diff --git a/src/go/build/deps_test.go b/src/go/build/deps_test.go
index ecc269e713..3098743780 100644
--- a/src/go/build/deps_test.go
+++ b/src/go/build/deps_test.go
@@ -221,53 +221,53 @@ var pkgDeps = map[string][]string{
"go/types": {"L4", "GOPARSER", "container/heap", "go/constant"},
// One of a kind.
- "archive/tar": {"L4", "OS", "syscall"},
- "archive/zip": {"L4", "OS", "compress/flate"},
- "container/heap": {"sort"},
- "compress/bzip2": {"L4"},
- "compress/flate": {"L4"},
- "compress/gzip": {"L4", "compress/flate"},
- "compress/lzw": {"L4"},
- "compress/zlib": {"L4", "compress/flate"},
- "context": {"errors", "fmt", "reflect", "sync", "time"},
- "database/sql": {"L4", "container/list", "context", "database/sql/driver", "database/sql/internal"},
- "database/sql/driver": {"L4", "context", "time", "database/sql/internal"},
- "debug/dwarf": {"L4"},
- "debug/elf": {"L4", "OS", "debug/dwarf", "compress/zlib"},
- "debug/gosym": {"L4"},
- "debug/macho": {"L4", "OS", "debug/dwarf"},
- "debug/pe": {"L4", "OS", "debug/dwarf"},
- "debug/plan9obj": {"L4", "OS"},
- "encoding": {"L4"},
- "encoding/ascii85": {"L4"},
- "encoding/asn1": {"L4", "math/big"},
- "encoding/csv": {"L4"},
- "encoding/gob": {"L4", "OS", "encoding"},
- "encoding/hex": {"L4"},
- "encoding/json": {"L4", "encoding"},
- "encoding/pem": {"L4"},
- "encoding/xml": {"L4", "encoding"},
- "flag": {"L4", "OS"},
- "go/build": {"L4", "OS", "GOPARSER"},
- "html": {"L4"},
- "image/draw": {"L4", "image/internal/imageutil"},
- "image/gif": {"L4", "compress/lzw", "image/color/palette", "image/draw"},
- "image/internal/imageutil": {"L4"},
- "image/jpeg": {"L4", "image/internal/imageutil"},
- "image/png": {"L4", "compress/zlib"},
- "index/suffixarray": {"L4", "regexp"},
- "internal/singleflight": {"sync"},
- "internal/trace": {"L4", "OS"},
- "internal/pprof/profile": {"L4", "OS", "compress/gzip", "regexp"},
- "math/big": {"L4", "math/bits"},
- "mime": {"L4", "OS", "syscall", "internal/syscall/windows/registry"},
- "mime/quotedprintable": {"L4"},
- "net/internal/socktest": {"L4", "OS", "syscall"},
- "net/url": {"L4"},
- "plugin": {"L0", "OS", "CGO"},
- "testing/internal/testdeps": {"L4", "runtime/pprof", "regexp"},
- "text/scanner": {"L4", "OS"},
- "text/template/parse": {"L4"},
+ "archive/tar": {"L4", "OS", "syscall"},
+ "archive/zip": {"L4", "OS", "compress/flate"},
+ "container/heap": {"sort"},
+ "compress/bzip2": {"L4"},
+ "compress/flate": {"L4"},
+ "compress/gzip": {"L4", "compress/flate"},
+ "compress/lzw": {"L4"},
+ "compress/zlib": {"L4", "compress/flate"},
+ "context": {"errors", "fmt", "reflect", "sync", "time"},
+ "database/sql": {"L4", "container/list", "context", "database/sql/driver", "database/sql/internal"},
+ "database/sql/driver": {"L4", "context", "time", "database/sql/internal"},
+ "debug/dwarf": {"L4"},
+ "debug/elf": {"L4", "OS", "debug/dwarf", "compress/zlib"},
+ "debug/gosym": {"L4"},
+ "debug/macho": {"L4", "OS", "debug/dwarf"},
+ "debug/pe": {"L4", "OS", "debug/dwarf"},
+ "debug/plan9obj": {"L4", "OS"},
+ "encoding": {"L4"},
+ "encoding/ascii85": {"L4"},
+ "encoding/asn1": {"L4", "math/big"},
+ "encoding/csv": {"L4"},
+ "encoding/gob": {"L4", "OS", "encoding"},
+ "encoding/hex": {"L4"},
+ "encoding/json": {"L4", "encoding"},
+ "encoding/pem": {"L4"},
+ "encoding/xml": {"L4", "encoding"},
+ "flag": {"L4", "OS"},
+ "go/build": {"L4", "OS", "GOPARSER"},
+ "html": {"L4"},
+ "image/draw": {"L4", "image/internal/imageutil"},
+ "image/gif": {"L4", "compress/lzw", "image/color/palette", "image/draw"},
+ "image/internal/imageutil": {"L4"},
+ "image/jpeg": {"L4", "image/internal/imageutil"},
+ "image/png": {"L4", "compress/zlib"},
+ "index/suffixarray": {"L4", "regexp"},
+ "internal/singleflight": {"sync"},
+ "internal/trace": {"L4", "OS"},
+ "math/big": {"L4", "math/bits"},
+ "mime": {"L4", "OS", "syscall", "internal/syscall/windows/registry"},
+ "mime/quotedprintable": {"L4"},
+ "net/internal/socktest": {"L4", "OS", "syscall"},
+ "net/url": {"L4"},
+ "plugin": {"L0", "OS", "CGO"},
+ "runtime/pprof/internal/profile": {"L4", "OS", "compress/gzip", "regexp"},
+ "testing/internal/testdeps": {"L4", "runtime/pprof", "regexp"},
+ "text/scanner": {"L4", "OS"},
+ "text/template/parse": {"L4"},
"html/template": {
"L4", "OS", "encoding/json", "html", "text/template",
diff --git a/src/internal/pprof/profile/encode.go b/src/runtime/pprof/internal/profile/encode.go
index 6b879a84ac..6b879a84ac 100644
--- a/src/internal/pprof/profile/encode.go
+++ b/src/runtime/pprof/internal/profile/encode.go
diff --git a/src/internal/pprof/profile/filter.go b/src/runtime/pprof/internal/profile/filter.go
index 1baa096a49..1baa096a49 100644
--- a/src/internal/pprof/profile/filter.go
+++ b/src/runtime/pprof/internal/profile/filter.go
diff --git a/src/internal/pprof/profile/legacy_profile.go b/src/runtime/pprof/internal/profile/legacy_profile.go
index d69f8deee7..d69f8deee7 100644
--- a/src/internal/pprof/profile/legacy_profile.go
+++ b/src/runtime/pprof/internal/profile/legacy_profile.go
diff --git a/src/internal/pprof/profile/profile.go b/src/runtime/pprof/internal/profile/profile.go
index 28e713d7be..9b6a6f9aa9 100644
--- a/src/internal/pprof/profile/profile.go
+++ b/src/runtime/pprof/internal/profile/profile.go
@@ -4,6 +4,9 @@
// Package profile provides a representation of profile.proto and
// methods to encode/decode profiles in this format.
+//
+// This package is only for testing runtime/pprof.
+// It is not used by production Go programs.
package profile
import (
diff --git a/src/internal/pprof/profile/profile_test.go b/src/runtime/pprof/internal/profile/profile_test.go
index e1963f3351..e1963f3351 100644
--- a/src/internal/pprof/profile/profile_test.go
+++ b/src/runtime/pprof/internal/profile/profile_test.go
diff --git a/src/internal/pprof/profile/proto.go b/src/runtime/pprof/internal/profile/proto.go
index 11d7f9ff9b..11d7f9ff9b 100644
--- a/src/internal/pprof/profile/proto.go
+++ b/src/runtime/pprof/internal/profile/proto.go
diff --git a/src/internal/pprof/profile/proto_test.go b/src/runtime/pprof/internal/profile/proto_test.go
index c2613fc375..c2613fc375 100644
--- a/src/internal/pprof/profile/proto_test.go
+++ b/src/runtime/pprof/internal/profile/proto_test.go
diff --git a/src/internal/pprof/profile/prune.go b/src/runtime/pprof/internal/profile/prune.go
index 1924fada7a..1924fada7a 100644
--- a/src/internal/pprof/profile/prune.go
+++ b/src/runtime/pprof/internal/profile/prune.go
diff --git a/src/runtime/pprof/pprof_test.go b/src/runtime/pprof/pprof_test.go
index b1ec23322e..044329246b 100644
--- a/src/runtime/pprof/pprof_test.go
+++ b/src/runtime/pprof/pprof_test.go
@@ -9,13 +9,13 @@ package pprof
import (
"bytes"
"fmt"
- "internal/pprof/profile"
"internal/testenv"
"math/big"
"os"
"os/exec"
"regexp"
"runtime"
+ "runtime/pprof/internal/profile"
"strings"
"sync"
"testing"
diff --git a/src/runtime/pprof/proto_test.go b/src/runtime/pprof/proto_test.go
index 664d4aa6c8..aa2d03b449 100644
--- a/src/runtime/pprof/proto_test.go
+++ b/src/runtime/pprof/proto_test.go
@@ -7,10 +7,10 @@ package pprof
import (
"bytes"
"encoding/json"
- "internal/pprof/profile"
"io/ioutil"
"reflect"
"runtime"
+ "runtime/pprof/internal/profile"
"testing"
)
diff --git a/src/runtime/pprof/protomem_test.go b/src/runtime/pprof/protomem_test.go
index 3afdf491d1..e5aa69fc37 100644
--- a/src/runtime/pprof/protomem_test.go
+++ b/src/runtime/pprof/protomem_test.go
@@ -6,8 +6,8 @@ package pprof
import (
"bytes"
- "internal/pprof/profile"
"runtime"
+ "runtime/pprof/internal/profile"
"testing"
)