[Stress] Move logging after all computations of progress_str (#1226)

This commit is contained in:
Vitaliy Urusovskij 2020-07-07 14:23:26 +03:00 committed by GitHub
parent ae6cfe12bb
commit e085a04d8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,6 @@ TestResult common_test_pipeline(const std::function<void()>& test_pipeline, cons
progress_str = std::to_string(iteration) + "\t" + std::to_string(sliding_avg[VMRSS]) + "\t" +
std::to_string(sliding_avg[VMHWM]) + "\t" + std::to_string(sliding_avg[VMSIZE]) + "\t" +
std::to_string(sliding_avg[VMPEAK]) + "\t" + std::to_string(sliding_avg[THREADS]);
log_info(progress_str);
// compute test info
if (iteration >= WARMUP_STEPS) {
@ -136,6 +135,7 @@ TestResult common_test_pipeline(const std::function<void()>& test_pipeline, cons
if (outlier[VMRSS]) progress_str += "\t<-VMRSS outlier";
if (outlier[VMHWM]) progress_str += "\t<-VMHWM outlier";
}
log_info(progress_str);
}
}