-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AB#8893
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export TOOLS_BUILDNUMBER=20240829.1 | ||
export TOOLS_BUILDNUMBER=20241108.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package httpserver | ||
|
||
import ( | ||
"net/http" | ||
|
||
"github.com/datatrails/go-datatrails-common/environment" | ||
) | ||
|
||
func NewPPROF(log Logger, name string) *Server { | ||
port, err := environment.GetRequired("PPROF_PORT") | ||
if err != nil { | ||
return nil | ||
} | ||
h := http.NewServeMux() | ||
h.HandleFunc(prefix+"/debug/pprof/", prof.Index) | ||
Check failure on line 15 in httpserver/pprofserver.go GitHub Actions / Quality Control
|
||
h.HandleFunc(prefix+"/debug/pprof/cmdline", prof.Cmdline) | ||
Check failure on line 16 in httpserver/pprofserver.go GitHub Actions / Quality Control
|
||
h.HandleFunc(prefix+"/debug/pprof/profile", prof.Profile) | ||
Check failure on line 17 in httpserver/pprofserver.go GitHub Actions / Quality Control
|
||
h.HandleFunc(prefix+"/debug/pprof/symbol", prof.Symbol) | ||
Check failure on line 18 in httpserver/pprofserver.go GitHub Actions / Quality Control
|
||
h.HandleFunc(prefix+"/debug/pprof/trace", prof.Trace) | ||
Check failure on line 19 in httpserver/pprofserver.go GitHub Actions / Quality Control
|
||
return New(log, name, port, h) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters