You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed a bug where empty data sets in ExecData_map would lead to ADLocalFuncStatistics sending uninitialized function stats data objects to the pserver and hence to the global database
auto anom_it = iface.getExecDataEntry(dset_idx, e.index);
239
+
240
+
//verboseStream << "Collecting provenance for anomaly on dset " << dset_idx << " index " << e.index << " with content:\n" << anom_it->get_json().dump(2) << std::endl;
239
241
240
242
if(anom_it->get_exclusive() < m_min_anom_time) continue; //skip executions with too short runtimes to avoid filling the database with irrelevant anomalies
//Because some data sets may be empty or contain events that don't get labeled this step we should skip those data sets
55
+
//This is particularly important for empty data sets as these do not have entries in m_funcstats, hence trying to push anomaly counts (even 0) will lead to uninitialized entries
verboseStream << "ADLocalFuncStatistics::gatherAnomalies for dset_idx=" << dset_idx << " and fid=" << fid << " with " << nanom << " anomalies" << std::endl;
64
+
65
+
auto fit = m_funcstats.find(fid);
66
+
if(fit == m_funcstats.end()){
67
+
std::stringstream ss; ss << "ADLocalFuncStatistics::gatherAnomalies cannot find funcstats entry for function index " << fid << " with " << nanom << " anomalies";
0 commit comments