[all-commits] [llvm/llvm-project] e2a10d: [lldb] Remove timer from Module::GetNumCompileUnits

Dave Lee via All-commits all-commits at lists.llvm.org
Thu Dec 1 09:42:12 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e2a10d8ca34a3554d8d19d2bbdd3133970e4d09b
      https://github.com/llvm/llvm-project/commit/e2a10d8ca34a3554d8d19d2bbdd3133970e4d09b
  Author: Dave Lee <davelee.com at gmail.com>
  Date:   2022-12-01 (Thu, 01 Dec 2022)

  Changed paths:
    M lldb/source/Core/Module.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list