MCPcopy Create free account
hub / github.com/google/pprof / getHTMLTemplates

Function getHTMLTemplates

internal/driver/webhtml.go:34–41  ·  view source on GitHub ↗

getHTMLTemplates returns the set of HTML templates used by pprof, initializing them if necessary.

()

Source from the content-addressed store, hash-verified

32// getHTMLTemplates returns the set of HTML templates used by pprof,
33// initializing them if necessary.
34func getHTMLTemplates() *template.Template {
35 htmlTemplateInit.Do(func() {
36 htmlTemplates = template.New("templategroup")
37 addTemplates(htmlTemplates)
38 report.AddSourceTemplates(htmlTemplates)
39 })
40 return htmlTemplates
41}
42
43//go:embed html
44var embeddedFiles embed.FS

Callers 1

renderHTMLFunction · 0.85

Calls 2

AddSourceTemplatesFunction · 0.92
addTemplatesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…