Skip to content
Snippets Groups Projects
Commit 379e2e13 authored by Merov Linden's avatar Merov Linden
Browse files

STORM-746 : Fix bug in performance report output

parent e752e918
No related branches found
No related tags found
No related merge requests found
...@@ -521,25 +521,25 @@ int main(int argc, char** argv) ...@@ -521,25 +521,25 @@ int main(int argc, char** argv)
} }
} }
// Stop the perf gathering system if needed
if (LLFastTimer::sMetricLog)
{
LLMetricPerformanceTesterBasic::deleteTester(LLFastTimer::sLogName);
sAllDone = true;
}
// Output perf data if requested by user // Output perf data if requested by user
if (analyze_performance) if (analyze_performance)
{ {
std::cout << "Analyzing performance" << std::endl;
std::string baseline_name = LLFastTimer::sLogName + "_baseline.slp"; std::string baseline_name = LLFastTimer::sLogName + "_baseline.slp";
std::string current_name = LLFastTimer::sLogName + ".slp"; std::string current_name = LLFastTimer::sLogName + ".slp";
std::string report_name = LLFastTimer::sLogName + "_report.csv"; 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); LLMetricPerformanceTesterBasic::doAnalysisMetrics(baseline_name, current_name, report_name);
} }
// Stop the perf gathering system if needed
if (LLFastTimer::sMetricLog)
{
LLMetricPerformanceTesterBasic::deleteTester(LLFastTimer::sLogName);
sAllDone = true;
}
// Cleanup and exit // Cleanup and exit
LLImage::cleanupClass(); LLImage::cleanupClass();
if (fast_timer_log_thread) if (fast_timer_log_thread)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment