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

Function AddSourceTemplates

internal/report/source_html.go:22–25  ·  view source on GitHub ↗

AddSourceTemplates adds templates used by PrintWebList to t.

(t *template.Template)

Source from the content-addressed store, hash-verified

20
21// AddSourceTemplates adds templates used by PrintWebList to t.
22func AddSourceTemplates(t *template.Template) {
23 template.Must(t.Parse(`{{define "weblistcss"}}` + weblistPageCSS + `{{end}}`))
24 template.Must(t.Parse(`{{define "weblistjs"}}` + weblistPageScript + `{{end}}`))
25}
26
27const weblistPageCSS = `<style type="text/css">
28body #content{

Callers 1

getHTMLTemplatesFunction · 0.92

Calls 1

ParseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…