衡量绩效

I am learning how to make a website on App Engine using Golang. I want a way to do performance profiling. I am trying to use appstats. However there are two issues

  • Is there a work around to avoid using strict function structure

func(appengine.Context, http.ResponseWriter, *http.Request)

  • Second, I am using httprouter for mapping multiple pages. How to use appstats with httprouter? Is there better alternative than appstats?

    r := httprouter.New()
    http.Handle("/", r)
    
    r.GET("/", HomePage)
    //Signup routes
    r.GET("/form/signup", GoToSignupPage)