Skip to content

proposal: testing: profile flags to capture only during benchmark loop #75984

@yonderblue

Description

@yonderblue

Proposal Details

Would be great to have at least the option to restrict the flags like -cpuprofile to only capture during the b.Loop or equivalent, since that is the target of the benchmark. Setup code can often be expensive and make the relative percentages and other inspection harder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ProposalToolProposalIssues describing a requested change to a Go tool or command-line program.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions