[lldb] Remove timer from Module::GetNumCompileUnits
authorDave Lee <davelee.com@gmail.com>
Tue, 29 Nov 2022 00:15:41 +0000 (16:15 -0800)
committerDave Lee <davelee.com@gmail.com>
Thu, 1 Dec 2022 17:41:51 +0000 (09:41 -0800)
commite2a10d8ca34a3554d8d19d2bbdd3133970e4d09b
tree34941e6f0aaece88a02aefea6cb26dbb79bad689
parentef10f81985f665c553c818e1c5962aebb8f36f0c
[lldb] Remove timer from Module::GetNumCompileUnits

`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.

Differential Revision: https://reviews.llvm.org/D138878
lldb/source/Core/Module.cpp