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

Method start

internal/graph/dotgraph.go:108–115  ·  view source on GitHub ↗

start generates a title and initial node in DOT format.

()

Source from the content-addressed store, hash-verified

106
107// start generates a title and initial node in DOT format.
108func (b *builder) start() {
109 graphname := "unnamed"
110 if b.config.Title != "" {
111 graphname = b.config.Title
112 }
113 fmt.Fprintln(b, `digraph "`+graphname+`" {`)
114 fmt.Fprintln(b, `node [style=filled fillcolor="#f8f8f8"]`)
115}
116
117// finish closes the opening curly bracket in the constructed DOT buffer.
118func (b *builder) finish() {

Callers 1

ComposeDotFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected