[Lldb-commits] [PATCH] D112279: Add modules stats into the "statistics dump" command.

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 22 18:21:40 PDT 2021


clayborg updated this revision to Diff 381693.
clayborg added a comment.

Updated "statistics dump" command to always outout a dictionary that represents DebuggerStats. This means a top level dictionary will contain "modules", a list of all modules from the global module list, and "targets" which will be one target, or multiple if "--all" was supplied. With "modules" at the top level, it represents how modules are represented in LLDB better having them at the DebuggerStats level. Then target dictionaries can refer to these modules with "identifiers" which are unique integers.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112279/new/

https://reviews.llvm.org/D112279

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112279.381693.patch
Type: text/x-patch
Size: 21958 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20211023/7d54bffa/attachment-0001.bin>


More information about the lldb-commits mailing list