Lines Matching refs:module_stat
258 ModuleStats module_stat; in ReportStatistics() local
259 module_stat.symtab_parse_time = module->GetSymtabParseTime().get().count(); in ReportStatistics()
260 module_stat.symtab_index_time = module->GetSymtabIndexTime().get().count(); in ReportStatistics()
263 module_stat.symtab_loaded_from_cache = symtab->GetWasLoadedFromCache(); in ReportStatistics()
264 if (module_stat.symtab_loaded_from_cache) in ReportStatistics()
266 module_stat.symtab_saved_to_cache = symtab->GetWasSavedToCache(); in ReportStatistics()
267 if (module_stat.symtab_saved_to_cache) in ReportStatistics()
274 module_stat.symfile_path = in ReportStatistics()
278 module_stat.symfile_modules.push_back((intptr_t)symbol_module.get()); in ReportStatistics()
280 module_stat.debug_info_index_loaded_from_cache = in ReportStatistics()
282 if (module_stat.debug_info_index_loaded_from_cache) in ReportStatistics()
284 module_stat.debug_info_index_saved_to_cache = in ReportStatistics()
286 if (module_stat.debug_info_index_saved_to_cache) in ReportStatistics()
288 module_stat.debug_index_time = sym_file->GetDebugInfoIndexTime().count(); in ReportStatistics()
289 module_stat.debug_parse_time = sym_file->GetDebugInfoParseTime().count(); in ReportStatistics()
290 module_stat.debug_info_size = in ReportStatistics()
292 module_stat.symtab_stripped = module->GetObjectFile()->IsStripped(); in ReportStatistics()
293 if (module_stat.symtab_stripped) in ReportStatistics()
295 module_stat.debug_info_enabled = sym_file->GetLoadDebugInfoEnabled() && in ReportStatistics()
296 module_stat.debug_info_size > 0; in ReportStatistics()
297 module_stat.debug_info_had_variable_errors = in ReportStatistics()
299 if (module_stat.debug_info_enabled) in ReportStatistics()
301 if (module_stat.debug_info_size > 0) in ReportStatistics()
303 if (module_stat.debug_info_had_variable_errors) in ReportStatistics()
306 symtab_parse_time += module_stat.symtab_parse_time; in ReportStatistics()
307 symtab_index_time += module_stat.symtab_index_time; in ReportStatistics()
308 debug_parse_time += module_stat.debug_parse_time; in ReportStatistics()
309 debug_index_time += module_stat.debug_index_time; in ReportStatistics()
310 debug_info_size += module_stat.debug_info_size; in ReportStatistics()
313 module_stat.type_system_stats.insert({ts->GetPluginName(), *stats}); in ReportStatistics()
315 module_stat.debug_info_had_incomplete_types = true; in ReportStatistics()
318 if (module_stat.debug_info_had_incomplete_types) in ReportStatistics()
322 module_stat.identifier = (intptr_t)module; in ReportStatistics()
323 module_stat.path = module->GetFileSpec().GetPath(); in ReportStatistics()
325 module_stat.path.append(1, '('); in ReportStatistics()
326 module_stat.path.append(object_name.GetStringRef().str()); in ReportStatistics()
327 module_stat.path.append(1, ')'); in ReportStatistics()
329 module_stat.uuid = module->GetUUID().GetAsString(); in ReportStatistics()
330 module_stat.triple = module->GetArchitecture().GetTriple().str(); in ReportStatistics()
331 json_modules.emplace_back(module_stat.ToJSON()); in ReportStatistics()