getHTMLTemplates returns the set of HTML templates used by pprof, initializing them if necessary.
()
| 32 | // getHTMLTemplates returns the set of HTML templates used by pprof, |
| 33 | // initializing them if necessary. |
| 34 | func 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 |
| 44 | var embeddedFiles embed.FS |
no test coverage detected
searching dependent graphs…