feedback: ignore abbs outside select interval
This commit is contained in:
parent
5ffac514ca
commit
66a87835be
@ -542,7 +542,17 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "trace_job_response_times"))]
|
||||
let tmp = StgFeedback::abbs_in_exec_order(&observer.last_trace);
|
||||
#[cfg(feature = "trace_job_response_times")]
|
||||
let tmp = {
|
||||
if let Some(worst_instance) = observer.job_instances.iter().filter(|x| Some(x.2.clone()) == observer.select_task).max_by(|a,b| (a.1-a.0).cmp(&(b.1-b.0))) {
|
||||
let t = observer.last_trace.iter().filter(|x| x.start_tick < worst_instance.1 && x.end_tick > worst_instance.0 ).cloned().collect();
|
||||
StgFeedback::abbs_in_exec_order(&t)
|
||||
} else {
|
||||
StgFeedback::abbs_in_exec_order(&observer.last_trace)
|
||||
}
|
||||
};
|
||||
if INTEREST_AGGREGATE || INTEREST_ABBPATH {
|
||||
if INTEREST_ABBPATH {
|
||||
let h = get_generic_hash(&tmp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user