Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tracepoint Configurator could be more clever #11

@acln0

Description

@acln0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions