This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Move Module::FindTypes scoped timer to SymbolFileDWARFDebugMap
ClosedPublic

Authored by kastiglione on Mar 11 2022, 11:23 AM.

Details

Summary

When debugging via debug map, Module::FindTypes is called for very frequently
due to lookups happening over the possibly large set of object files.

Where a scoped timer is useful, it can placed in SymbolFile subclasses. This
change adds a scoped timer to SymbolFileDWARFDebugMap::FindTypes.

Also, deletes some nearby long commented out code.

Diff Detail

Event Timeline

kastiglione requested review of this revision.Mar 11 2022, 11:23 AM
kastiglione created this revision.
This revision is now accepted and ready to land.Mar 11 2022, 12:36 PM