diff options
author | Greg Clayton <gclayton@fb.com> | 2021-10-21 16:01:00 -0700 |
---|---|---|
committer | Greg Clayton <gclayton@fb.com> | 2021-10-25 11:50:02 -0700 |
commit | c571988e9d576f78c00e45fc730f68953c45ea3a (patch) | |
tree | 1721a4105d79ed59401b4ae860dd95127b9cbce4 /lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp | |
parent | cdb335ffaff224174271b8a23134c1b41de2cc61 (diff) | |
download | llvm-c571988e9d576f78c00e45fc730f68953c45ea3a.zip llvm-c571988e9d576f78c00e45fc730f68953c45ea3a.tar.gz llvm-c571988e9d576f78c00e45fc730f68953c45ea3a.tar.bz2 |
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
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp b/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp index b4a26bd..bec0099 100644 --- a/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp +++ b/lldb/source/Plugins/ObjectFile/JIT/ObjectFileJIT.cpp @@ -111,6 +111,7 @@ Symtab *ObjectFileJIT::GetSymtab() { if (module_sp) { std::lock_guard<std::recursive_mutex> guard(module_sp->GetMutex()); if (m_symtab_up == nullptr) { + ElapsedTime elapsed(module_sp->GetSymtabParseTime()); m_symtab_up = std::make_unique<Symtab>(this); std::lock_guard<std::recursive_mutex> symtab_guard( m_symtab_up->GetMutex()); |