perf icon indicating copy to clipboard operation
perf copied to clipboard

Tracepoint Configurator could be more clever

Open acln0 opened this issue 6 years ago • 0 comments

From @pwaller:

Calling g.Add(perf.Instructions, perf.CPUCycles, perf.ContextSwitches, tracepoint) on a Group with ExcludeKernel = true causes the tracepoint to not register any values.

Perhaps the Configurator returned by Tracepoint could be more clever, and set ExcludeKernel = false.

Or perhaps a different API is in order, such as IncludeKernel(Configurator) Configurator, or more generally, WithSomeOption(Configurator) Configurator.

Thinking.

acln0 avatar Jul 19 '19 16:07 acln0