func newProfHandler(svr *server.Server, rd *render.Render) *ProfHandler {
	return &ProfHandler{
		svr: svr,
		rd:  rd,
	}
}
newProfHandler constructor for ProfHandler
package api
import (
	"archive/zip"
	"context"
	"encoding/json"
	"fmt"
	"net/http"
	"runtime"
	"runtime/pprof"
	"strconv"
	"time"
	"github.com/pingcap/log"
	"github.com/tikv/pd/server"
	"github.com/tikv/pd/server/versioninfo"
	"github.com/unrolled/render"
	"go.uber.org/zap"
)
type ProfHandler struct {
	svr *server.Server
	rd  *render.Render
}