Add modules stats into the "statistics dump" command.
authorGreg Clayton <gclayton@fb.com>
Thu, 21 Oct 2021 23:01:00 +0000 (16:01 -0700)
committerGreg Clayton <gclayton@fb.com>
Mon, 25 Oct 2021 18:50:02 +0000 (11:50 -0700)
commitc571988e9d576f78c00e45fc730f68953c45ea3a
tree1721a4105d79ed59401b4ae860dd95127b9cbce4
parentcdb335ffaff224174271b8a23134c1b41de2cc61
Add modules stats into the "statistics dump" command.

The new module stats adds the ability to measure the time it takes to parse and index the symbol tables for each module, and reports modules statistics in the output of "statistics dump" along with the path, UUID and triple of the module. The time it takes to parse and index the symbol tables are also aggregated into new top level key/value pairs at the target level.

Differential Revision: https://reviews.llvm.org/D112279
13 files changed:
lldb/include/lldb/Core/Module.h
lldb/include/lldb/Target/Statistics.h
lldb/source/API/SBTarget.cpp
lldb/source/Commands/CommandObjectStats.cpp
lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
lldb/source/Symbol/Symtab.cpp
lldb/source/Target/Statistics.cpp
lldb/source/Target/Target.cpp
lldb/test/API/commands/statistics/basic/TestStats.py
lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py