func (s *LoggingServeMux) RegisterPprof() {
	s.Handle("/debug/pprof/", http.HandlerFunc(pprof.Index))
	s.Handle("/debug/pprof/cmdline", http.HandlerFunc(pprof.Cmdline))
	s.Handle("/debug/pprof/profile", http.HandlerFunc(pprof.Profile))
	s.Handle("/debug/pprof/symbol", http.HandlerFunc(pprof.Symbol))
}
RegisterPprof registers pprof relates funcs to s.
package cgi
import (
	"log"
	"net/http"
	"net/http/pprof"
	"github.com/gorilla/handlers"
	"github.com/gorilla/mux"
)
type LoggingServeMux struct {
	*http.ServeMux
}
func NewLoggingServeMux() *LoggingServeMux {
	return &LoggingServeMux{
		http.NewServeMux(),
	}
}
func (s *LoggingServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request) {
	log.Println(r.RemoteAddr, r.Method, r.URL.Path, r.Header.Get("User-Agent"), r.Header.Get("Referer"))
	s.ServeMux.ServeHTTP(w, r)
}
func (s *LoggingServeMux) RegistCompressHandler(path string, fn func(w http.ResponseWriter, r *http.Request)) {
	s.Handle(path, handlers.CompressHandler(http.HandlerFunc(fn)))
}