Skip to content
Snippets Groups Projects
Commit 666f7cb5 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Moar build and crash feex

parent a4ca8355
No related branches found
No related tags found
No related merge requests found
......@@ -252,14 +252,14 @@ void LLMetricPerformanceTesterBasic::analyzePerformance(llofstream* os, LLSD* ba
/*virtual*/
void LLMetricPerformanceTesterBasic::compareTestResults(llofstream* os, std::string_view metric_string, S32 v_base, S32 v_current)
{
*os << absl::StrFormat(" ,%s, %d, %d, %d, %.4f\n", metric_string, v_base, v_current,
*os << llformat(" ,%s, %d, %d, %d, %.4f\n", std::string(metric_string).c_str(), v_base, v_current,
v_current - v_base, (v_base != 0) ? 100.f * v_current / v_base : 0) ;
}
/*virtual*/
void LLMetricPerformanceTesterBasic::compareTestResults(llofstream* os, std::string_view metric_string, F32 v_base, F32 v_current)
{
*os << absl::StrFormat(" ,%s, %.4f, %.4f, %.4f, %.4f\n", metric_string, v_base, v_current,
*os << llformat(" ,%s, %.4f, %.4f, %.4f, %.4f\n", std::string(metric_string).c_str(), v_base, v_current,
v_current - v_base, (fabs(v_base) > 0.0001f) ? 100.f * v_current / v_base : 0.f ) ;
}
......
......@@ -113,7 +113,6 @@ const S32 CURRENT_VERSION = 101;
typedef std::pair<std::string, U32> settings_pair_t;
typedef std::vector<settings_pair_t> settings_vec_t;
std::map<std::string, int, std::less<>> getCount;
settings_vec_t getCount_v;
F64 start_time = 0;
std::string SETTINGS_PROFILE = "settings_profile.log";
......@@ -431,10 +430,12 @@ void LLControlGroup::cleanup()
}
else
{
static settings_vec_t getCount_v;
F64 end_time = LLTimer::getTotalSeconds();
U32 total_seconds = (U32)(end_time - start_time);
std::string msg = absl::StrFormat("Runtime (seconds): %d\n\n No. accesses Avg. accesses/sec Name\n", total_seconds);
std::string msg = llformat("Runtime (seconds): %d\n\n No. accesses Avg. accesses/sec Name\n", total_seconds);
size_t data_size = msg.size();
if (fwrite(msg.c_str(), 1, data_size, out) != data_size)
{
......@@ -456,7 +457,7 @@ void LLControlGroup::cleanup()
}
if (access_rate >= 2)
{
msg = absl::StrFormat("%13d %7d %s\n", iter->second, access_rate, iter->first);
msg = llformat("%13d %7d %s\n", iter->second, access_rate, iter->first.c_str());
size_t data_size = msg.size();
if (fwrite(msg.c_str(), 1, data_size, out) != data_size)
{
......
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