This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Remove some trivial scoped timers
ClosedPublic

Authored by kastiglione on Dec 6 2021, 1:31 PM.

Details

Summary

While profiling lldb (from swift/llvm-project), these timers were noticed to be short lived and high firing, and so they add noise more than value.

The data points I recorded are:

FindTypes_Impl: 49,646 calls, 812ns avg, 40.33ms total
AppendSymbolIndexesWithName: 36,229 calls, 913ns avg, 33.09ms total
FindAllSymbolsWithNameAndType: 36,229 calls, 1.93µs avg, 70.05ms total
FindSymbolsWithNameAndType: 23,263 calls, 3.09µs avg, 71.88ms total

Diff Detail

Event Timeline

kastiglione requested review of this revision.Dec 6 2021, 1:31 PM
kastiglione created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 6 2021, 1:31 PM
JDevlieghere accepted this revision.Dec 6 2021, 1:33 PM

These functions seem hot enough that the overhead of the timer outweighs the value it brings. LGTM.

This revision is now accepted and ready to land.Dec 6 2021, 1:33 PM
This revision was automatically updated to reflect the committed changes.