mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-02-08 19:42:38 +00:00
commit
735b937608
6 changed files with 21 additions and 21 deletions
|
@ -6,4 +6,3 @@ type slice []uint32
|
|||
func (p slice) Len() int { return len(p) }
|
||||
func (p slice) Less(i, j int) bool { return p[i] < p[j] }
|
||||
func (p slice) Swap(i, j int) { p[i], p[j] = p[j], p[i] }
|
||||
|
||||
|
|
|
@ -4,13 +4,14 @@ import (
|
|||
"net/http"
|
||||
"net/http/pprof"
|
||||
)
|
||||
|
||||
// PprofService https://golang.org/pkg/net/http/pprof/.
|
||||
type PprofService Service
|
||||
|
||||
// NewPprofService created new service for gathering pprof metrics.
|
||||
func NewPprofService(cfg Config) *Service {
|
||||
handler := http.NewServeMux()
|
||||
handler.HandleFunc("/debug/pprof", pprof.Index)
|
||||
handler.HandleFunc("/debug/pprof/", pprof.Index)
|
||||
handler.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
|
||||
handler.HandleFunc("/debug/pprof/profile", pprof.Profile)
|
||||
handler.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
|
||||
|
|
|
@ -2,9 +2,9 @@ package wrappers
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/CityOfZion/neo-go/pkg/core/state"
|
||||
"sort"
|
||||
|
||||
"github.com/CityOfZion/neo-go/pkg/core/state"
|
||||
"github.com/CityOfZion/neo-go/pkg/crypto/keys"
|
||||
"github.com/CityOfZion/neo-go/pkg/util"
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue