mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-02-09 23:27:16 +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) Len() int { return len(p) }
|
||||||
func (p slice) Less(i, j int) bool { return p[i] < p[j] }
|
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] }
|
func (p slice) Swap(i, j int) { p[i], p[j] = p[j], p[i] }
|
||||||
|
|
||||||
|
|
|
@ -4,13 +4,14 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/pprof"
|
"net/http/pprof"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PprofService https://golang.org/pkg/net/http/pprof/.
|
// PprofService https://golang.org/pkg/net/http/pprof/.
|
||||||
type PprofService Service
|
type PprofService Service
|
||||||
|
|
||||||
// NewPprofService created new service for gathering pprof metrics.
|
// NewPprofService created new service for gathering pprof metrics.
|
||||||
func NewPprofService(cfg Config) *Service {
|
func NewPprofService(cfg Config) *Service {
|
||||||
handler := http.NewServeMux()
|
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/cmdline", pprof.Cmdline)
|
||||||
handler.HandleFunc("/debug/pprof/profile", pprof.Profile)
|
handler.HandleFunc("/debug/pprof/profile", pprof.Profile)
|
||||||
handler.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
|
handler.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
|
||||||
|
|
|
@ -2,9 +2,9 @@ package wrappers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"github.com/CityOfZion/neo-go/pkg/core/state"
|
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
|
"github.com/CityOfZion/neo-go/pkg/core/state"
|
||||||
"github.com/CityOfZion/neo-go/pkg/crypto/keys"
|
"github.com/CityOfZion/neo-go/pkg/crypto/keys"
|
||||||
"github.com/CityOfZion/neo-go/pkg/util"
|
"github.com/CityOfZion/neo-go/pkg/util"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue