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