MCPcopy
hub / github.com/microsoft/retina / NewScriptGenerator

Function NewScriptGenerator

shell/tracescript.go:20–22  ·  view source on GitHub ↗

NewScriptGenerator creates a new script generator with the given config.

(config TraceConfig)

Source from the content-addressed store, hash-verified

18
19// NewScriptGenerator creates a new script generator with the given config.
20func NewScriptGenerator(config TraceConfig) *ScriptGenerator {
21 return &ScriptGenerator{config: config}
22}
23
24// Generate creates the complete bpftrace script.
25func (g *ScriptGenerator) Generate() string {

Calls

no outgoing calls