From 379e2e138d801ebf7f13d29512f76298aacf3dc5 Mon Sep 17 00:00:00 2001 From: Merov Linden Date: Thu, 7 Apr 2011 16:41:57 -0700 Subject: [PATCH] STORM-746 : Fix bug in performance report output --- .../llimage_libtest/llimage_libtest.cpp | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/indra/integration_tests/llimage_libtest/llimage_libtest.cpp b/indra/integration_tests/llimage_libtest/llimage_libtest.cpp index 31d3e18877..1466e44324 100644 --- a/indra/integration_tests/llimage_libtest/llimage_libtest.cpp +++ b/indra/integration_tests/llimage_libtest/llimage_libtest.cpp @@ -521,6 +521,18 @@ int main(int argc, char** argv) } } + // Output perf data if requested by user + if (analyze_performance) + { + std::string baseline_name = LLFastTimer::sLogName + "_baseline.slp"; + std::string current_name = LLFastTimer::sLogName + ".slp"; + std::string report_name = LLFastTimer::sLogName + "_report.csv"; + + std::cout << "Analyzing performance, check report in : " << report_name << std::endl; + + LLMetricPerformanceTesterBasic::doAnalysisMetrics(baseline_name, current_name, report_name); + } + // Stop the perf gathering system if needed if (LLFastTimer::sMetricLog) { @@ -528,18 +540,6 @@ int main(int argc, char** argv) sAllDone = true; } - // Output perf data if requested by user - if (analyze_performance) - { - std::cout << "Analyzing performance" << std::endl; - - std::string baseline_name = LLFastTimer::sLogName + "_baseline.slp"; - std::string current_name = LLFastTimer::sLogName + ".slp"; - std::string report_name = LLFastTimer::sLogName + "_report.csv"; - - LLMetricPerformanceTesterBasic::doAnalysisMetrics(baseline_name, current_name, report_name); - } - // Cleanup and exit LLImage::cleanupClass(); if (fast_timer_log_thread)