X7ROOT File Manager
Current Path:
/opt/golang/1.22.0/src/cmd/vendor/github.com/google/pprof/internal/report
opt
/
golang
/
1.22.0
/
src
/
cmd
/
vendor
/
github.com
/
google
/
pprof
/
internal
/
report
/
📁
..
📄
package.go
(512 B)
📄
report.go
(37.36 KB)
📄
shortnames.go
(1.19 KB)
📄
source.go
(31.79 KB)
📄
source_html.go
(1.74 KB)
📄
stacks.go
(5.77 KB)
📄
synth.go
(883 B)
Editing: package.go
package report import "regexp" // pkgRE extracts package name, It looks for the first "." or "::" that occurs // after the last "/". (Searching after the last / allows us to correctly handle // names that look like "some.url.com/foo.bar".) var pkgRE = regexp.MustCompile(`^((.*/)?[\w\d_]+)(\.|::)([^/]*)$`) // packageName returns the package name of the named symbol, or "" if not found. func packageName(name string) string { m := pkgRE.FindStringSubmatch(name) if m == nil { return "" } return m[1] }
Upload File
Create Folder