This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Remove timer from Module::GetNumCompileUnits
ClosedPublic

Authored by kastiglione on Nov 28 2022, 4:19 PM.

Details

Summary

GetNumCompileUnits has fast execution, and is high firing. Fast and frequent functions are not good candidates for timers. In a recent profile, GetNumCompileUnits was called >>10k times with an average duration of 1 microsecond.

Diff Detail

Event Timeline

kastiglione created this revision.Nov 28 2022, 4:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 28 2022, 4:19 PM
kastiglione requested review of this revision.Nov 28 2022, 4:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 28 2022, 4:19 PM
This revision is now accepted and ready to land.Nov 30 2022, 5:11 PM
This revision was automatically updated to reflect the committed changes.