[#9999] node: Add off-cpu profiler
All checks were successful
DCO action / DCO (pull_request) Successful in 51s
Tests and linters / Run gofumpt (pull_request) Successful in 2m39s
Vulncheck / Vulncheck (pull_request) Successful in 3m4s
Pre-commit hooks / Pre-commit (pull_request) Successful in 3m46s
Tests and linters / Staticcheck (pull_request) Successful in 3m49s
Build / Build Components (pull_request) Successful in 3m55s
Tests and linters / Lint (pull_request) Successful in 4m34s
Tests and linters / gopls check (pull_request) Successful in 5m3s
Tests and linters / Tests (pull_request) Successful in 7m21s
Tests and linters / Tests with -race (pull_request) Successful in 7m22s
All checks were successful
DCO action / DCO (pull_request) Successful in 51s
Tests and linters / Run gofumpt (pull_request) Successful in 2m39s
Vulncheck / Vulncheck (pull_request) Successful in 3m4s
Pre-commit hooks / Pre-commit (pull_request) Successful in 3m46s
Tests and linters / Staticcheck (pull_request) Successful in 3m49s
Build / Build Components (pull_request) Successful in 3m55s
Tests and linters / Lint (pull_request) Successful in 4m34s
Tests and linters / gopls check (pull_request) Successful in 5m3s
Tests and linters / Tests (pull_request) Successful in 7m21s
Tests and linters / Tests with -race (pull_request) Successful in 7m22s
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
87ac3c5279
commit
33318bf58c
3 changed files with 8 additions and 0 deletions
2
go.mod
2
go.mod
|
@ -19,6 +19,7 @@ require (
|
|||
github.com/cheggaaa/pb v1.0.29
|
||||
github.com/chzyer/readline v1.5.1
|
||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
|
||||
github.com/felixge/fgprof v0.9.5
|
||||
github.com/flynn-archive/go-shlex v0.0.0-20150515145356-3f9db97f8568
|
||||
github.com/gdamore/tcell/v2 v2.7.4
|
||||
github.com/go-pkgz/expirable-cache/v3 v3.0.0
|
||||
|
@ -77,6 +78,7 @@ require (
|
|||
github.com/go-logr/logr v1.4.2 // indirect
|
||||
github.com/go-logr/stdr v1.2.2 // indirect
|
||||
github.com/golang/snappy v0.0.4 // indirect
|
||||
github.com/google/pprof v0.0.0-20240227163752-401108e1b7e7 // indirect
|
||||
github.com/gorilla/websocket v1.5.1 // indirect
|
||||
github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.0 // indirect
|
||||
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect
|
||||
|
|
BIN
go.sum
BIN
go.sum
Binary file not shown.
|
@ -3,8 +3,14 @@ package httputil
|
|||
import (
|
||||
"net/http"
|
||||
"net/http/pprof"
|
||||
|
||||
"github.com/felixge/fgprof"
|
||||
)
|
||||
|
||||
func init() {
|
||||
http.DefaultServeMux.Handle("/debug/fgprof", fgprof.Handler())
|
||||
}
|
||||
|
||||
// initializes pprof package in order to
|
||||
// register Prometheus handlers on http.DefaultServeMux.
|
||||
var _ = pprof.Handler("")
|
||||
|
|
Loading…
Reference in a new issue