Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getHTMLTemplates (0.11 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/driver/webhtml.go

    	"github.com/google/pprof/internal/report"
    )
    
    var (
    	htmlTemplates    *template.Template // Lazily loaded templates
    	htmlTemplateInit sync.Once
    )
    
    // getHTMLTemplates returns the set of HTML templates used by pprof,
    // initializing them if necessary.
    func getHTMLTemplates() *template.Template {
    	htmlTemplateInit.Do(func() {
    		htmlTemplates = template.New("templategroup")
    		addTemplates(htmlTemplates)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/driver/webui.go

    	profile := getFromLegend(legend, "Type: ", "unknown")
    	data.Title = file + " " + profile
    	data.Errors = errList
    	data.Total = rpt.Total()
    	data.Legend = legend
    	return getHTMLTemplates().ExecuteTemplate(dst, tmpl, data)
    }
    
    // render responds with html generated by passing data to the named template.
    func (ui *webInterface) render(w http.ResponseWriter, req *http.Request, tmpl string,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 14K bytes
    - Viewed (0)
Back to top