Skip to content

cmd/internal/obj: delete Cputime and all its uses #19865

@josharian

Description

@josharian

obj.Cputime is used to print elapsed time in various places in the assemblers. It is protected by ctxt.Debugvlog. However, toolstash -cmp sets Debugvlog to true, causing rare spurious timing-based failures. They are rare because the elapsed time is basically always ~0. We could introduce a special flag to turn on/off this timing printing, but I'd rather just wipe it all out. We have good profiling and benchmarking tools; we should use them instead, if/when the assemblers ever become an actual performance bottleneck.

Objections? Not sure who quite who to cc here for input, but maybe: @minux @cherrymui @randall77

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions