stillbox/pkg/server/profile.go

13 lines
181 B
Go
Raw Normal View History

2024-10-30 09:49:45 -04:00
//go:build pprof
// +build pprof
package server
import (
2024-11-10 10:17:02 -05:00
"github.com/go-chi/chi/v5/middleware"
2024-10-30 09:49:45 -04:00
)
func (s *Server) installPprof() {
2024-11-10 10:17:02 -05:00
s.r.Mount("/debug", middleware.Profiler())
2024-10-30 09:49:45 -04:00
}