Просмотр исходного кода

Update tree structure to follow Go conventions

Also update the build instructions to use go get
Raul Silvera 9 лет назад
Родитель
Сommit
164ad05478
100 измененных файлов: 80 добавлений и 136 удалений
  1. 0
    30
      COMPILE.sh
  2. 7
    3
      README.md
  3. 0
    30
      TEST.sh
  4. 3
    3
      driver/driver.go
  5. 1
    1
      internal/binutils/addr2liner.go
  6. 1
    1
      internal/binutils/addr2liner_nm.go
  7. 2
    2
      internal/binutils/binutils.go
  8. 1
    1
      internal/binutils/binutils_test.go
  9. 2
    2
      internal/binutils/disasm.go
  10. 1
    1
      internal/binutils/disasm_test.go
  11. 0
    0
      internal/binutils/testdata/wrapper/addr2line
  12. 0
    0
      internal/binutils/testdata/wrapper/nm
  13. 0
    0
      internal/binutils/testdata/wrapper/objdump
  14. 2
    2
      internal/driver/cli.go
  15. 4
    4
      internal/driver/commands.go
  16. 3
    3
      internal/driver/driver.go
  17. 3
    3
      internal/driver/driver_focus.go
  18. 5
    5
      internal/driver/driver_test.go
  19. 3
    3
      internal/driver/fetch.go
  20. 3
    3
      internal/driver/fetch_test.go
  21. 3
    3
      internal/driver/interactive.go
  22. 3
    3
      internal/driver/interactive_test.go
  23. 3
    3
      internal/driver/options.go
  24. 0
    0
      internal/driver/tempfile.go
  25. 0
    0
      internal/driver/testdata/cppbench.cpu
  26. 0
    0
      internal/driver/testdata/cppbench.svg
  27. 0
    0
      internal/driver/testdata/file1000.src
  28. 0
    0
      internal/driver/testdata/file2000.src
  29. 0
    0
      internal/driver/testdata/file3000.src
  30. 0
    0
      internal/driver/testdata/go.crc32.cpu
  31. 0
    0
      internal/driver/testdata/pprof.contention.cum.files.dot
  32. 0
    0
      internal/driver/testdata/pprof.contention.flat.addresses.dot.focus.ignore
  33. 0
    0
      internal/driver/testdata/pprof.cpu.callgrind
  34. 0
    0
      internal/driver/testdata/pprof.cpu.cum.lines.text.hide
  35. 0
    0
      internal/driver/testdata/pprof.cpu.cum.lines.text.show
  36. 0
    0
      internal/driver/testdata/pprof.cpu.cum.lines.topproto.hide
  37. 0
    0
      internal/driver/testdata/pprof.cpu.flat.addresses.disasm
  38. 0
    0
      internal/driver/testdata/pprof.cpu.flat.addresses.weblist
  39. 0
    0
      internal/driver/testdata/pprof.cpu.flat.functions.dot
  40. 0
    0
      internal/driver/testdata/pprof.cpu.flat.functions.text
  41. 0
    0
      internal/driver/testdata/pprof.cpu.peek
  42. 0
    0
      internal/driver/testdata/pprof.cpu.svg
  43. 0
    0
      internal/driver/testdata/pprof.cpu.tags
  44. 0
    0
      internal/driver/testdata/pprof.cpu.tags.focus.ignore
  45. 0
    0
      internal/driver/testdata/pprof.cpu.traces
  46. 0
    0
      internal/driver/testdata/pprof.cpusmall.flat.addresses.tree
  47. 0
    0
      internal/driver/testdata/pprof.heap.callgrind
  48. 0
    0
      internal/driver/testdata/pprof.heap.cum.lines.tree.focus
  49. 0
    0
      internal/driver/testdata/pprof.heap.cum.relative_percentages.tree.focus
  50. 0
    0
      internal/driver/testdata/pprof.heap.flat.files.seconds.text
  51. 0
    0
      internal/driver/testdata/pprof.heap.flat.files.text
  52. 0
    0
      internal/driver/testdata/pprof.heap.flat.inuse_objects.text
  53. 0
    0
      internal/driver/testdata/pprof.heap.flat.inuse_space.dot.focus
  54. 0
    0
      internal/driver/testdata/pprof.heap.flat.inuse_space.dot.focus.ignore
  55. 0
    0
      internal/driver/testdata/pprof.heap.flat.lines.dot.focus
  56. 0
    0
      internal/driver/testdata/pprof.heap_alloc.flat.alloc_objects.text
  57. 0
    0
      internal/driver/testdata/pprof.heap_alloc.flat.alloc_space.dot.focus
  58. 0
    0
      internal/driver/testdata/pprof.heap_alloc.flat.alloc_space.dot.hide
  59. 0
    0
      internal/driver/testdata/pprof.unknown.flat.functions.text
  60. 0
    0
      internal/driver/testdata/wrapper/addr2line
  61. 0
    0
      internal/driver/testdata/wrapper/dot
  62. 0
    0
      internal/driver/testdata/wrapper/nm
  63. 0
    0
      internal/driver/testdata/wrapper/objdump
  64. 0
    0
      internal/elfexec/elfexec.go
  65. 0
    0
      internal/elfexec/elfexec_test.go
  66. 1
    1
      internal/graph/dotgraph.go
  67. 1
    1
      internal/graph/dotgraph_test.go
  68. 1
    1
      internal/graph/graph.go
  69. 0
    0
      internal/graph/testdata/compose1.dot
  70. 0
    0
      internal/graph/testdata/compose2.dot
  71. 0
    0
      internal/graph/testdata/compose3.dot
  72. 0
    0
      internal/graph/testdata/compose4.dot
  73. 0
    0
      internal/graph/testdata/compose5.dot
  74. 1
    1
      internal/measurement/measurement.go
  75. 1
    1
      internal/plugin/plugin.go
  76. 0
    0
      internal/proftest/proftest.go
  77. 4
    4
      internal/report/report.go
  78. 3
    3
      internal/report/report_test.go
  79. 2
    2
      internal/report/source.go
  80. 0
    0
      internal/report/source_html.go
  81. 0
    0
      internal/report/testdata/source.dot
  82. 0
    0
      internal/report/testdata/source.rpt
  83. 0
    0
      internal/report/testdata/source1
  84. 0
    0
      internal/report/testdata/source2
  85. 5
    5
      internal/symbolizer/symbolizer.go
  86. 3
    3
      internal/symbolizer/symbolizer_test.go
  87. 2
    2
      internal/symbolz/symbolz.go
  88. 3
    3
      internal/symbolz/symbolz_test.go
  89. 1
    1
      pprof.go
  90. 0
    0
      profile/encode.go
  91. 0
    0
      profile/filter.go
  92. 0
    0
      profile/legacy_java_profile.go
  93. 0
    0
      profile/legacy_profile.go
  94. 0
    0
      profile/legacy_profile_test.go
  95. 0
    0
      profile/merge.go
  96. 0
    0
      profile/profile.go
  97. 1
    1
      profile/profile_test.go
  98. 0
    0
      profile/proto.go
  99. 1
    1
      profile/proto_test.go
  100. 0
    0
      profile/prune.go

+ 0
- 30
COMPILE.sh Просмотреть файл

@@ -1,30 +0,0 @@
1
-#!/bin/bash
2
-
3
-# Copyright 2014 Google Inc. All Rights Reserved.
4
-# 
5
-# Licensed under the Apache License, Version 2.0 (the "License");
6
-# you may not use this file except in compliance with the License.
7
-# You may obtain a copy of the License at
8
-# 
9
-#     http://www.apache.org/licenses/LICENSE-2.0
10
-# 
11
-# Unless required by applicable law or agreed to in writing, software
12
-# distributed under the License is distributed on an "AS IS" BASIS,
13
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
-# See the License for the specific language governing permissions and
15
-# limitations under the License.
16
-
17
-ROOT=${PWD}
18
-
19
-echo Building pprof at ${ROOT}
20
-GOPATH=${ROOT}:${ROOT}/third_party go build pprof 
21
-RETCODE=$?
22
-
23
-if [ ${RETCODE} -eq 0 ]
24
-then
25
-   echo Build was successful. pprof available at ${ROOT}/pprof
26
-else
27
-   echo Build failed.
28
-   exit 1
29
-fi
30
-

+ 7
- 3
README.md Просмотреть файл

@@ -24,12 +24,16 @@ them through the use of the native binutils tools (addr2line and nm).
24 24
 
25 25
 Prerequisites:
26 26
 
27
-- Go development kit: https://golang.org/dl/
28
-  Known to work with Go 1.5
27
+- Go development kit. Known to work with Go 1.5.
28
+  Follow [these instructions](http://golang.org/doc/code.html) to install the 
29
+  go tool and set up GOPATH.
30
+
29 31
 - Graphviz: http://www.graphviz.org/
30 32
   Optional, used to generate graphic visualizations of profiles
31 33
 
32
-To build it, run the COMPILE.sh script. The TEST.sh script runs unit tests.
34
+To build and install it, use the `go get` tool.
35
+
36
+    go get github.com/google/pprof
33 37
 
34 38
 # Basic usage
35 39
 

+ 0
- 30
TEST.sh Просмотреть файл

@@ -1,30 +0,0 @@
1
-#!/bin/bash
2
-
3
-# Copyright 2014 Google Inc. All Rights Reserved.
4
-# 
5
-# Licensed under the Apache License, Version 2.0 (the "License");
6
-# you may not use this file except in compliance with the License.
7
-# You may obtain a copy of the License at
8
-# 
9
-#     http://www.apache.org/licenses/LICENSE-2.0
10
-# 
11
-# Unless required by applicable law or agreed to in writing, software
12
-# distributed under the License is distributed on an "AS IS" BASIS,
13
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
-# See the License for the specific language governing permissions and
15
-# limitations under the License.
16
-
17
-ROOT=${PWD}
18
-INTERNAL="internal/binutils internal/driver internal/elfexec internal/graph internal/report internal/symbolizer internal/symbolz"
19
-PACKAGES="profile ${INTERNAL}"
20
-
21
-echo Testing pprof packages at ${ROOT}
22
-GOPATH=${ROOT}:${ROOT}/third_party go test $PACKAGES
23
-RETCODE=$?
24
-
25
-if [ ${RETCODE} -eq 0 ]
26
-then
27
-   echo Tests were successful.
28
-else
29
-   echo Tests failed.
30
-fi

src/driver/driver.go → driver/driver.go Просмотреть файл

@@ -16,13 +16,13 @@
16 16
 package driver
17 17
 
18 18
 import (
19
-	internaldriver "internal/driver"
20
-	"internal/plugin"
21 19
 	"io"
22 20
 	"regexp"
23 21
 	"time"
24 22
 
25
-	"profile"
23
+	internaldriver "github.com/google/pprof/internal/driver"
24
+	"github.com/google/pprof/internal/plugin"
25
+	"github.com/google/pprof/profile"
26 26
 )
27 27
 
28 28
 // PProf acquires a profile, and symbolizes it using a profile

src/internal/binutils/addr2liner.go → internal/binutils/addr2liner.go Просмотреть файл

@@ -22,7 +22,7 @@ import (
22 22
 	"strconv"
23 23
 	"strings"
24 24
 
25
-	"internal/plugin"
25
+	"github.com/google/pprof/internal/plugin"
26 26
 )
27 27
 
28 28
 const (

src/internal/binutils/addr2liner_nm.go → internal/binutils/addr2liner_nm.go Просмотреть файл

@@ -22,7 +22,7 @@ import (
22 22
 	"strconv"
23 23
 	"strings"
24 24
 
25
-	"internal/plugin"
25
+	"github.com/google/pprof/internal/plugin"
26 26
 )
27 27
 
28 28
 const (

src/internal/binutils/binutils.go → internal/binutils/binutils.go Просмотреть файл

@@ -24,8 +24,8 @@ import (
24 24
 	"regexp"
25 25
 	"strings"
26 26
 
27
-	"internal/elfexec"
28
-	"internal/plugin"
27
+	"github.com/google/pprof/internal/elfexec"
28
+	"github.com/google/pprof/internal/plugin"
29 29
 )
30 30
 
31 31
 // A Binutils implements plugin.ObjTool by invoking the GNU binutils.

src/internal/binutils/binutils_test.go → internal/binutils/binutils_test.go Просмотреть файл

@@ -18,7 +18,7 @@ import (
18 18
 	"fmt"
19 19
 	"testing"
20 20
 
21
-	"internal/plugin"
21
+	"github.com/google/pprof/internal/plugin"
22 22
 )
23 23
 
24 24
 var testAddrMap = map[int]string{

src/internal/binutils/disasm.go → internal/binutils/disasm.go Просмотреть файл

@@ -22,8 +22,8 @@ import (
22 22
 	"regexp"
23 23
 	"strconv"
24 24
 
25
-	"internal/plugin"
26
-	"golang/demangle"
25
+	"github.com/google/pprof/internal/plugin"
26
+	"github.com/google/pprof/third_party/golang/demangle"
27 27
 )
28 28
 
29 29
 var (

src/internal/binutils/disasm_test.go → internal/binutils/disasm_test.go Просмотреть файл

@@ -19,7 +19,7 @@ import (
19 19
 	"regexp"
20 20
 	"testing"
21 21
 
22
-	"internal/plugin"
22
+	"github.com/google/pprof/internal/plugin"
23 23
 )
24 24
 
25 25
 // TestFindSymbols tests the FindSymbols routine by using a fake nm

src/internal/binutils/testdata/wrapper/addr2line → internal/binutils/testdata/wrapper/addr2line Просмотреть файл


src/internal/binutils/testdata/wrapper/nm → internal/binutils/testdata/wrapper/nm Просмотреть файл


src/internal/binutils/testdata/wrapper/objdump → internal/binutils/testdata/wrapper/objdump Просмотреть файл


src/internal/driver/cli.go → internal/driver/cli.go Просмотреть файл

@@ -19,8 +19,8 @@ import (
19 19
 	"os"
20 20
 	"strings"
21 21
 
22
-	"internal/binutils"
23
-	"internal/plugin"
22
+	"github.com/google/pprof/internal/binutils"
23
+	"github.com/google/pprof/internal/plugin"
24 24
 )
25 25
 
26 26
 type source struct {

src/internal/driver/commands.go → internal/driver/commands.go Просмотреть файл

@@ -26,10 +26,10 @@ import (
26 26
 	"strings"
27 27
 	"time"
28 28
 
29
-	"internal/plugin"
30
-	"internal/report"
31
-	"profile"
32
-	"svg"
29
+	"github.com/google/pprof/internal/plugin"
30
+	"github.com/google/pprof/internal/report"
31
+	"github.com/google/pprof/profile"
32
+	"github.com/google/pprof/third_party/svg"
33 33
 )
34 34
 
35 35
 // commands describes the commands accepted by pprof.

src/internal/driver/driver.go → internal/driver/driver.go Просмотреть файл

@@ -25,9 +25,9 @@ import (
25 25
 	"path/filepath"
26 26
 	"regexp"
27 27
 
28
-	"internal/plugin"
29
-	"profile"
30
-	"internal/report"
28
+	"github.com/google/pprof/internal/plugin"
29
+	"github.com/google/pprof/internal/report"
30
+	"github.com/google/pprof/profile"
31 31
 )
32 32
 
33 33
 // PProf acquires a profile, and symbolizes it using a profile

src/internal/driver/driver_focus.go → internal/driver/driver_focus.go Просмотреть файл

@@ -20,9 +20,9 @@ import (
20 20
 	"strconv"
21 21
 	"strings"
22 22
 
23
-	"internal/measurement"
24
-	"internal/plugin"
25
-	"profile"
23
+	"github.com/google/pprof/internal/measurement"
24
+	"github.com/google/pprof/internal/plugin"
25
+	"github.com/google/pprof/profile"
26 26
 )
27 27
 
28 28
 var tagFilterRangeRx = regexp.MustCompile("([[:digit:]]+)([[:alpha:]]+)")

src/internal/driver/driver_test.go → internal/driver/driver_test.go Просмотреть файл

@@ -24,11 +24,11 @@ import (
24 24
 	"testing"
25 25
 	"time"
26 26
 
27
-	"internal/binutils"
28
-	"internal/plugin"
29
-	"profile"
30
-	"internal/proftest"
31
-	"internal/symbolz"
27
+	"github.com/google/pprof/internal/binutils"
28
+	"github.com/google/pprof/internal/plugin"
29
+	"github.com/google/pprof/internal/proftest"
30
+	"github.com/google/pprof/internal/symbolz"
31
+	"github.com/google/pprof/profile"
32 32
 )
33 33
 
34 34
 func TestParse(t *testing.T) {

src/internal/driver/fetch.go → internal/driver/fetch.go Просмотреть файл

@@ -25,9 +25,9 @@ import (
25 25
 	"sync"
26 26
 	"time"
27 27
 
28
-	"internal/measurement"
29
-	"internal/plugin"
30
-	"profile"
28
+	"github.com/google/pprof/internal/measurement"
29
+	"github.com/google/pprof/internal/plugin"
30
+	"github.com/google/pprof/profile"
31 31
 )
32 32
 
33 33
 // fetchProfiles fetches and symbolizes the profiles specified by s.

src/internal/driver/fetch_test.go → internal/driver/fetch_test.go Просмотреть файл

@@ -25,9 +25,9 @@ import (
25 25
 	"testing"
26 26
 	"time"
27 27
 
28
-	"internal/plugin"
29
-	"internal/proftest"
30
-	"profile"
28
+	"github.com/google/pprof/internal/plugin"
29
+	"github.com/google/pprof/internal/proftest"
30
+	"github.com/google/pprof/profile"
31 31
 )
32 32
 
33 33
 func TestSymbolizationPath(t *testing.T) {

src/internal/driver/interactive.go → internal/driver/interactive.go Просмотреть файл

@@ -21,9 +21,9 @@ import (
21 21
 	"strconv"
22 22
 	"strings"
23 23
 
24
-	"internal/plugin"
25
-	"internal/report"
26
-	"profile"
24
+	"github.com/google/pprof/internal/plugin"
25
+	"github.com/google/pprof/internal/report"
26
+	"github.com/google/pprof/profile"
27 27
 )
28 28
 
29 29
 // interactive starts a shell to read pprof commands.

src/internal/driver/interactive_test.go → internal/driver/interactive_test.go Просмотреть файл

@@ -21,9 +21,9 @@ import (
21 21
 	"strings"
22 22
 	"testing"
23 23
 
24
-	"internal/plugin"
25
-	"profile"
26
-	"internal/report"
24
+	"github.com/google/pprof/internal/plugin"
25
+	"github.com/google/pprof/internal/report"
26
+	"github.com/google/pprof/profile"
27 27
 )
28 28
 
29 29
 func TestShell(t *testing.T) {

src/internal/driver/options.go → internal/driver/options.go Просмотреть файл

@@ -22,9 +22,9 @@ import (
22 22
 	"os"
23 23
 	"strings"
24 24
 
25
-	"internal/binutils"
26
-	"internal/plugin"
27
-	"internal/symbolizer"
25
+	"github.com/google/pprof/internal/binutils"
26
+	"github.com/google/pprof/internal/plugin"
27
+	"github.com/google/pprof/internal/symbolizer"
28 28
 )
29 29
 
30 30
 // setDefaults returns a new plugin.Options with zero fields sets to

src/internal/driver/tempfile.go → internal/driver/tempfile.go Просмотреть файл


src/internal/driver/testdata/cppbench.cpu → internal/driver/testdata/cppbench.cpu Просмотреть файл


src/internal/driver/testdata/cppbench.svg → internal/driver/testdata/cppbench.svg Просмотреть файл


src/internal/driver/testdata/file1000.src → internal/driver/testdata/file1000.src Просмотреть файл


src/internal/driver/testdata/file2000.src → internal/driver/testdata/file2000.src Просмотреть файл


src/internal/driver/testdata/file3000.src → internal/driver/testdata/file3000.src Просмотреть файл


src/internal/driver/testdata/go.crc32.cpu → internal/driver/testdata/go.crc32.cpu Просмотреть файл


src/internal/driver/testdata/pprof.contention.cum.files.dot → internal/driver/testdata/pprof.contention.cum.files.dot Просмотреть файл


src/internal/driver/testdata/pprof.contention.flat.addresses.dot.focus.ignore → internal/driver/testdata/pprof.contention.flat.addresses.dot.focus.ignore Просмотреть файл


src/internal/driver/testdata/pprof.cpu.callgrind → internal/driver/testdata/pprof.cpu.callgrind Просмотреть файл


src/internal/driver/testdata/pprof.cpu.cum.lines.text.hide → internal/driver/testdata/pprof.cpu.cum.lines.text.hide Просмотреть файл


src/internal/driver/testdata/pprof.cpu.cum.lines.text.show → internal/driver/testdata/pprof.cpu.cum.lines.text.show Просмотреть файл


src/internal/driver/testdata/pprof.cpu.cum.lines.topproto.hide → internal/driver/testdata/pprof.cpu.cum.lines.topproto.hide Просмотреть файл


src/internal/driver/testdata/pprof.cpu.flat.addresses.disasm → internal/driver/testdata/pprof.cpu.flat.addresses.disasm Просмотреть файл


src/internal/driver/testdata/pprof.cpu.flat.addresses.weblist → internal/driver/testdata/pprof.cpu.flat.addresses.weblist Просмотреть файл


src/internal/driver/testdata/pprof.cpu.flat.functions.dot → internal/driver/testdata/pprof.cpu.flat.functions.dot Просмотреть файл


src/internal/driver/testdata/pprof.cpu.flat.functions.text → internal/driver/testdata/pprof.cpu.flat.functions.text Просмотреть файл


src/internal/driver/testdata/pprof.cpu.peek → internal/driver/testdata/pprof.cpu.peek Просмотреть файл


src/internal/driver/testdata/pprof.cpu.svg → internal/driver/testdata/pprof.cpu.svg Просмотреть файл


src/internal/driver/testdata/pprof.cpu.tags → internal/driver/testdata/pprof.cpu.tags Просмотреть файл


src/internal/driver/testdata/pprof.cpu.tags.focus.ignore → internal/driver/testdata/pprof.cpu.tags.focus.ignore Просмотреть файл


src/internal/driver/testdata/pprof.cpu.traces → internal/driver/testdata/pprof.cpu.traces Просмотреть файл


src/internal/driver/testdata/pprof.cpusmall.flat.addresses.tree → internal/driver/testdata/pprof.cpusmall.flat.addresses.tree Просмотреть файл


src/internal/driver/testdata/pprof.heap.callgrind → internal/driver/testdata/pprof.heap.callgrind Просмотреть файл


src/internal/driver/testdata/pprof.heap.cum.lines.tree.focus → internal/driver/testdata/pprof.heap.cum.lines.tree.focus Просмотреть файл


src/internal/driver/testdata/pprof.heap.cum.relative_percentages.tree.focus → internal/driver/testdata/pprof.heap.cum.relative_percentages.tree.focus Просмотреть файл


src/internal/driver/testdata/pprof.heap.flat.files.seconds.text → internal/driver/testdata/pprof.heap.flat.files.seconds.text Просмотреть файл


src/internal/driver/testdata/pprof.heap.flat.files.text → internal/driver/testdata/pprof.heap.flat.files.text Просмотреть файл


src/internal/driver/testdata/pprof.heap.flat.inuse_objects.text → internal/driver/testdata/pprof.heap.flat.inuse_objects.text Просмотреть файл


src/internal/driver/testdata/pprof.heap.flat.inuse_space.dot.focus → internal/driver/testdata/pprof.heap.flat.inuse_space.dot.focus Просмотреть файл


src/internal/driver/testdata/pprof.heap.flat.inuse_space.dot.focus.ignore → internal/driver/testdata/pprof.heap.flat.inuse_space.dot.focus.ignore Просмотреть файл


src/internal/driver/testdata/pprof.heap.flat.lines.dot.focus → internal/driver/testdata/pprof.heap.flat.lines.dot.focus Просмотреть файл


src/internal/driver/testdata/pprof.heap_alloc.flat.alloc_objects.text → internal/driver/testdata/pprof.heap_alloc.flat.alloc_objects.text Просмотреть файл


src/internal/driver/testdata/pprof.heap_alloc.flat.alloc_space.dot.focus → internal/driver/testdata/pprof.heap_alloc.flat.alloc_space.dot.focus Просмотреть файл


src/internal/driver/testdata/pprof.heap_alloc.flat.alloc_space.dot.hide → internal/driver/testdata/pprof.heap_alloc.flat.alloc_space.dot.hide Просмотреть файл


src/internal/driver/testdata/pprof.unknown.flat.functions.text → internal/driver/testdata/pprof.unknown.flat.functions.text Просмотреть файл


src/internal/driver/testdata/wrapper/addr2line → internal/driver/testdata/wrapper/addr2line Просмотреть файл


src/internal/driver/testdata/wrapper/dot → internal/driver/testdata/wrapper/dot Просмотреть файл


src/internal/driver/testdata/wrapper/nm → internal/driver/testdata/wrapper/nm Просмотреть файл


src/internal/driver/testdata/wrapper/objdump → internal/driver/testdata/wrapper/objdump Просмотреть файл


src/internal/elfexec/elfexec.go → internal/elfexec/elfexec.go Просмотреть файл


src/internal/elfexec/elfexec_test.go → internal/elfexec/elfexec_test.go Просмотреть файл


src/internal/graph/dotgraph.go → internal/graph/dotgraph.go Просмотреть файл

@@ -21,7 +21,7 @@ import (
21 21
 	"path/filepath"
22 22
 	"strings"
23 23
 
24
-	"internal/measurement"
24
+	"github.com/google/pprof/internal/measurement"
25 25
 )
26 26
 
27 27
 // DotAttributes contains details about the graph itself, giving

src/internal/graph/dotgraph_test.go → internal/graph/dotgraph_test.go Просмотреть файл

@@ -23,7 +23,7 @@ import (
23 23
 	"strings"
24 24
 	"testing"
25 25
 
26
-	"internal/proftest"
26
+	"github.com/google/pprof/internal/proftest"
27 27
 )
28 28
 
29 29
 const path = "testdata/"

src/internal/graph/graph.go → internal/graph/graph.go Просмотреть файл

@@ -22,7 +22,7 @@ import (
22 22
 	"sort"
23 23
 	"strings"
24 24
 
25
-	"profile"
25
+	"github.com/google/pprof/profile"
26 26
 )
27 27
 
28 28
 // Graph summarizes a performance profile into a format that is

src/internal/graph/testdata/compose1.dot → internal/graph/testdata/compose1.dot Просмотреть файл


src/internal/graph/testdata/compose2.dot → internal/graph/testdata/compose2.dot Просмотреть файл


src/internal/graph/testdata/compose3.dot → internal/graph/testdata/compose3.dot Просмотреть файл


src/internal/graph/testdata/compose4.dot → internal/graph/testdata/compose4.dot Просмотреть файл


src/internal/graph/testdata/compose5.dot → internal/graph/testdata/compose5.dot Просмотреть файл


src/internal/measurement/measurement.go → internal/measurement/measurement.go Просмотреть файл

@@ -20,7 +20,7 @@ import (
20 20
 	"strings"
21 21
 	"time"
22 22
 
23
-	"profile"
23
+	"github.com/google/pprof/profile"
24 24
 )
25 25
 
26 26
 // ScaleProfiles updates the units in a set of profiles to make them

src/internal/plugin/plugin.go → internal/plugin/plugin.go Просмотреть файл

@@ -20,7 +20,7 @@ import (
20 20
 	"regexp"
21 21
 	"time"
22 22
 
23
-	"profile"
23
+	"github.com/google/pprof/profile"
24 24
 )
25 25
 
26 26
 // Options groups all the optional plugins into pprof.

src/internal/proftest/proftest.go → internal/proftest/proftest.go Просмотреть файл


src/internal/report/report.go → internal/report/report.go Просмотреть файл

@@ -28,10 +28,10 @@ import (
28 28
 	"strings"
29 29
 	"time"
30 30
 
31
-	"internal/graph"
32
-	"internal/measurement"
33
-	"internal/plugin"
34
-	"profile"
31
+	"github.com/google/pprof/internal/graph"
32
+	"github.com/google/pprof/internal/measurement"
33
+	"github.com/google/pprof/internal/plugin"
34
+	"github.com/google/pprof/profile"
35 35
 )
36 36
 
37 37
 // Generate generates a report as directed by the Report.

src/internal/report/report_test.go → internal/report/report_test.go Просмотреть файл

@@ -21,9 +21,9 @@ import (
21 21
 	"regexp"
22 22
 	"testing"
23 23
 
24
-	"internal/binutils"
25
-	"profile"
26
-	"internal/proftest"
24
+	"github.com/google/pprof/internal/binutils"
25
+	"github.com/google/pprof/internal/proftest"
26
+	"github.com/google/pprof/profile"
27 27
 )
28 28
 
29 29
 type testcase struct {

src/internal/report/source.go → internal/report/source.go Просмотреть файл

@@ -28,8 +28,8 @@ import (
28 28
 	"strconv"
29 29
 	"strings"
30 30
 
31
-	"internal/graph"
32
-	"internal/plugin"
31
+	"github.com/google/pprof/internal/graph"
32
+	"github.com/google/pprof/internal/plugin"
33 33
 )
34 34
 
35 35
 // printSource prints an annotated source listing, include all

src/internal/report/source_html.go → internal/report/source_html.go Просмотреть файл


src/internal/report/testdata/source.dot → internal/report/testdata/source.dot Просмотреть файл


src/internal/report/testdata/source.rpt → internal/report/testdata/source.rpt Просмотреть файл


src/internal/report/testdata/source1 → internal/report/testdata/source1 Просмотреть файл


src/internal/report/testdata/source2 → internal/report/testdata/source2 Просмотреть файл


src/internal/symbolizer/symbolizer.go → internal/symbolizer/symbolizer.go Просмотреть файл

@@ -24,11 +24,11 @@ import (
24 24
 	"path/filepath"
25 25
 	"strings"
26 26
 
27
-	"internal/binutils"
28
-	"internal/plugin"
29
-	"profile"
30
-	"internal/symbolz"
31
-	"golang/demangle"
27
+	"github.com/google/pprof/internal/binutils"
28
+	"github.com/google/pprof/internal/plugin"
29
+	"github.com/google/pprof/internal/symbolz"
30
+	"github.com/google/pprof/profile"
31
+	"github.com/google/pprof/third_party/golang/demangle"
32 32
 )
33 33
 
34 34
 // Symbolizer implements the plugin.Symbolize interface.

src/internal/symbolizer/symbolizer_test.go → internal/symbolizer/symbolizer_test.go Просмотреть файл

@@ -19,9 +19,9 @@ import (
19 19
 	"regexp"
20 20
 	"testing"
21 21
 
22
-	"internal/plugin"
23
-	"profile"
24
-	"internal/proftest"
22
+	"github.com/google/pprof/internal/plugin"
23
+	"github.com/google/pprof/internal/proftest"
24
+	"github.com/google/pprof/profile"
25 25
 )
26 26
 
27 27
 var testM = []*profile.Mapping{

src/internal/symbolz/symbolz.go → internal/symbolz/symbolz.go Просмотреть файл

@@ -26,8 +26,8 @@ import (
26 26
 	"strconv"
27 27
 	"strings"
28 28
 
29
-	"internal/plugin"
30
-	"profile"
29
+	"github.com/google/pprof/internal/plugin"
30
+	"github.com/google/pprof/profile"
31 31
 )
32 32
 
33 33
 var (

src/internal/symbolz/symbolz_test.go → internal/symbolz/symbolz_test.go Просмотреть файл

@@ -19,9 +19,9 @@ import (
19 19
 	"strings"
20 20
 	"testing"
21 21
 
22
-	"internal/plugin"
23
-	"profile"
24
-	"internal/proftest"
22
+	"github.com/google/pprof/internal/plugin"
23
+	"github.com/google/pprof/internal/proftest"
24
+	"github.com/google/pprof/profile"
25 25
 )
26 26
 
27 27
 func TestSymbolzURL(t *testing.T) {

src/pprof/pprof.go → pprof.go Просмотреть файл

@@ -20,7 +20,7 @@ import (
20 20
 	"fmt"
21 21
 	"os"
22 22
 
23
-	"driver"
23
+	"github.com/google/pprof/driver"
24 24
 )
25 25
 
26 26
 func main() {

src/profile/encode.go → profile/encode.go Просмотреть файл


src/profile/filter.go → profile/filter.go Просмотреть файл


src/profile/legacy_java_profile.go → profile/legacy_java_profile.go Просмотреть файл


src/profile/legacy_profile.go → profile/legacy_profile.go Просмотреть файл


src/profile/legacy_profile_test.go → profile/legacy_profile_test.go Просмотреть файл


src/profile/merge.go → profile/merge.go Просмотреть файл


src/profile/profile.go → profile/profile.go Просмотреть файл


src/profile/profile_test.go → profile/profile_test.go Просмотреть файл

@@ -23,7 +23,7 @@ import (
23 23
 	"regexp"
24 24
 	"testing"
25 25
 
26
-	"internal/proftest"
26
+	"github.com/google/pprof/internal/proftest"
27 27
 )
28 28
 
29 29
 func TestParse(t *testing.T) {

src/profile/proto.go → profile/proto.go Просмотреть файл


src/profile/proto_test.go → profile/proto_test.go Просмотреть файл

@@ -18,7 +18,7 @@ import (
18 18
 	"bytes"
19 19
 	"testing"
20 20
 
21
-	"internal/proftest"
21
+	"github.com/google/pprof/internal/proftest"
22 22
 )
23 23
 
24 24
 var testM = []*Mapping{

src/profile/prune.go → profile/prune.go Просмотреть файл


Некоторые файлы не были показаны из-за большого количества измененных файлов