diff --git a/loadgen/loadgen.cc b/loadgen/loadgen.cc index 9a11fbd014..e09bb72368 100644 --- a/loadgen/loadgen.cc +++ b/loadgen/loadgen.cc @@ -828,10 +828,53 @@ PerformanceSummary FindPeakPerformanceBinarySearch( std::string tmp; if (m_perf_summary.PerfConstraintsMet(&tmp)) { + + LogDetail([l_field = + find_peak_performance::ToStringPerformanceField( + l_perf_summary.settings), + u_field = + find_peak_performance::ToStringPerformanceField( + u_perf_summary.settings), + m_field = + find_peak_performance::ToStringPerformanceField( + m_settings)](AsyncDetail& detail) { + #if USE_NEW_LOGGING_FORMAT + MLPERF_LOG( + detail, "generic_message", + "FindPeakPerformanceBinarySearch: Mid value satisfies performance constraints, new bounds are [" + + m_field + ", " + u_field + ")"); + #else + detail( + "FindPeakPerformanceBinarySearch: Mid value satisfies performance constraints, new bounds are [" + m_field + ", " + u_field + "]"); + #endif + }); + return FindPeakPerformanceBinarySearch( sut, qsl, sequence_gen, performance_set, m_perf_summary, u_perf_summary); } else { + + + LogDetail([l_field = + find_peak_performance::ToStringPerformanceField( + l_perf_summary.settings), + u_field = + find_peak_performance::ToStringPerformanceField( + u_perf_summary.settings), + m_field = + find_peak_performance::ToStringPerformanceField( + m_settings)](AsyncDetail& detail) { + #if USE_NEW_LOGGING_FORMAT + MLPERF_LOG( + detail, "generic_message", + "FindPeakPerformanceBinarySearch: Mid value does not satisfy performance constraints, new bounds are [" + + l_field + ", " + m_field + ")"); + #else + detail( + "FindPeakPerformanceBinarySearch: Mid value does not satisfy performance constraints, new bounds are [" + l_field + ", " + m_field + "]"); + #endif + }); + return FindPeakPerformanceBinarySearch( sut, qsl, sequence_gen, performance_set, l_perf_summary, m_perf_summary); @@ -1048,11 +1091,11 @@ void FindPeakPerformanceMode(SystemUnderTest* sut, QuerySampleLibrary* qsl, u_perf_summary.settings)](AsyncDetail& detail) { #if USE_NEW_LOGGING_FORMAT MLPERF_LOG(detail, "generic_message", - "FindPeakPerformance: Found boundaries: [" + l_field + ", " + - u_field + ")"); + "FindPeakPerformance: Found initial performance boundaries: [" + l_field + ", " + + u_field + "). Proceeding to find peak performance number."); #else - detail("FindPeakPerformance: Found boundaries: [" + l_field + ", " + - u_field + ")"); + detail("FindPeakPerformance: Found initial performance boundaries: [" + l_field + ", " + + u_field + "). Proceeding to find peak performance number."); #endif });