Lines Matching refs:module_stat
216 ModuleStats module_stat; in ReportStatistics() local
217 module_stat.identifier = (intptr_t)module; in ReportStatistics()
218 module_stat.path = module->GetFileSpec().GetPath(); in ReportStatistics()
220 module_stat.path.append(1, '('); in ReportStatistics()
221 module_stat.path.append(object_name.GetStringRef().str()); in ReportStatistics()
222 module_stat.path.append(1, ')'); in ReportStatistics()
224 module_stat.uuid = module->GetUUID().GetAsString(); in ReportStatistics()
225 module_stat.triple = module->GetArchitecture().GetTriple().str(); in ReportStatistics()
226 module_stat.symtab_parse_time = module->GetSymtabParseTime().get().count(); in ReportStatistics()
227 module_stat.symtab_index_time = module->GetSymtabIndexTime().get().count(); in ReportStatistics()
230 module_stat.symtab_loaded_from_cache = symtab->GetWasLoadedFromCache(); in ReportStatistics()
231 if (module_stat.symtab_loaded_from_cache) in ReportStatistics()
233 module_stat.symtab_saved_to_cache = symtab->GetWasSavedToCache(); in ReportStatistics()
234 if (module_stat.symtab_saved_to_cache) in ReportStatistics()
241 module_stat.symfile_path = in ReportStatistics()
243 module_stat.debug_index_time = sym_file->GetDebugInfoIndexTime().count(); in ReportStatistics()
244 module_stat.debug_parse_time = sym_file->GetDebugInfoParseTime().count(); in ReportStatistics()
245 module_stat.debug_info_size = sym_file->GetDebugInfoSize(); in ReportStatistics()
246 module_stat.debug_info_index_loaded_from_cache = in ReportStatistics()
248 if (module_stat.debug_info_index_loaded_from_cache) in ReportStatistics()
250 module_stat.debug_info_index_saved_to_cache = in ReportStatistics()
252 if (module_stat.debug_info_index_saved_to_cache) in ReportStatistics()
256 module_stat.symfile_modules.push_back((intptr_t)symbol_module.get()); in ReportStatistics()
257 module_stat.symtab_stripped = module->GetObjectFile()->IsStripped(); in ReportStatistics()
258 if (module_stat.symtab_stripped) in ReportStatistics()
260 module_stat.debug_info_enabled = sym_file->GetLoadDebugInfoEnabled() && in ReportStatistics()
261 module_stat.debug_info_size > 0; in ReportStatistics()
262 module_stat.debug_info_had_variable_errors = in ReportStatistics()
264 if (module_stat.debug_info_enabled) in ReportStatistics()
266 if (module_stat.debug_info_size > 0) in ReportStatistics()
268 if (module_stat.debug_info_had_variable_errors) in ReportStatistics()
271 symtab_parse_time += module_stat.symtab_parse_time; in ReportStatistics()
272 symtab_index_time += module_stat.symtab_index_time; in ReportStatistics()
273 debug_parse_time += module_stat.debug_parse_time; in ReportStatistics()
274 debug_index_time += module_stat.debug_index_time; in ReportStatistics()
275 debug_info_size += module_stat.debug_info_size; in ReportStatistics()
278 module_stat.type_system_stats.insert({ts->GetPluginName(), *stats}); in ReportStatistics()
280 module_stat.debug_info_had_incomplete_types = true; in ReportStatistics()
283 if (module_stat.debug_info_had_incomplete_types) in ReportStatistics()
286 json_modules.emplace_back(module_stat.ToJSON()); in ReportStatistics()