[Lldb-commits] [lldb] Add symbol locator time for each module in statistics (PR #134563)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 18 11:55:53 PDT 2025
================
@@ -276,12 +276,24 @@ Status ProcessKDP::DoConnectRemote(llvm::StringRef remote_url) {
// Lookup UUID locally, before attempting dsymForUUID like action
FileSpecList search_paths =
Target::GetDefaultDebugFileSearchPaths();
- module_spec.GetSymbolFileSpec() =
- PluginManager::LocateExecutableSymbolFile(module_spec,
- search_paths);
+ StatsDuration symbol_duration;
+ std::string symbol_locator_name;
+ StatsDuration object_duration;
+ std::string object_locator_name;
+ {
+ ElapsedTime elapsed(symbol_duration);
+ module_spec.GetSymbolFileSpec() =
+ PluginManager::LocateExecutableSymbolFile(
+ module_spec, search_paths, &symbol_locator_name);
+ }
if (module_spec.GetSymbolFileSpec()) {
- ModuleSpec executable_module_spec =
- PluginManager::LocateExecutableObjectFile(module_spec);
+ ModuleSpec executable_module_spec;
+ {
+ ElapsedTime elapsed(object_duration);
+ executable_module_spec =
+ PluginManager::LocateExecutableObjectFile(
+ module_spec, &object_locator_name);
+ }
----------------
clayborg wrote:
Same thing here.
https://github.com/llvm/llvm-project/pull/134563
More information about the lldb-commits
mailing list