Init intializes tracer after any changes -- opens pipe if not already open
()
| 54 | |
| 55 | // Init intializes tracer after any changes -- opens pipe if not already open |
| 56 | func (pt *TraceOptions) Init() { |
| 57 | if pt.Rules == "" { |
| 58 | pt.RulesList = nil |
| 59 | } else { |
| 60 | pt.RulesList = strings.Split(pt.Rules, " ") |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | // FullOn sets all options on |
| 65 | func (pt *TraceOptions) FullOn() { |