Skip to content

Commit

Permalink
Merge branch 'main' into llvm-symbolizer-startline
Browse files Browse the repository at this point in the history
  • Loading branch information
aalexand authored Sep 29, 2024
2 parents 6ad3ca5 + f3f46ee commit 27c179c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/symbolz/symbolz.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func symbolz(source string) string {
if strings.Contains(url.Path, "/debug/pprof/") || hasGperftoolsSuffix(url.Path) {
url.Path = path.Clean(url.Path + "/../symbol")
} else {
url.Path = "/symbolz"
url.Path = path.Clean(url.Path + "/../symbolz")
}
url.RawQuery = ""
return url.String()
Expand Down
1 change: 1 addition & 0 deletions internal/symbolz/symbolz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func TestSymbolzURL(t *testing.T) {
"http://host:8000/profilez?seconds=5": "http://host:8000/symbolz",
"http://host:8000/profilez?seconds=5&format=proto": "http://host:8000/symbolz",
"http://host:8000/heapz?format=legacy": "http://host:8000/symbolz",
"http://host:8000/some/deeper/path/profilez?seconds=5": "http://host:8000/some/deeper/path/symbolz",
"http://host:8000/debug/pprof/profile": "http://host:8000/debug/pprof/symbol",
"http://host:8000/debug/pprof/profile?seconds=10": "http://host:8000/debug/pprof/symbol",
"http://host:8000/debug/pprof/heap": "http://host:8000/debug/pprof/symbol",
Expand Down

0 comments on commit 27c179c

Please sign in to comment.