Fix UTF-8 strings in perf_meter files

This commit is contained in:
Nekotekina 2020-10-24 04:21:33 +03:00
parent 2b52b4a749
commit 89d9813a45
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ void perf_stat_base::print(const char* name) noexcept
{
if (u64 count = m_log[i + 1].load())
{
perf_log.notice("Perf stats for %s: events < %.3fµs: %u", name, std::pow(2., i) / 1000., count);
perf_log.notice(u8"Perf stats for %s: events < %.3fµs: %u", name, std::pow(2., i) / 1000., count);
}
}

View File

@ -177,7 +177,7 @@ public:
// Print in microseconds
if (static_cast<u64>(diff * 1000'000.) >= g_cfg.core.perf_report_threshold)
{
perf_log.notice("%s: %.3fµs", perf_name<ShortName>.data(), diff * 1000'000.);
perf_log.notice(u8"%s: %.3fµs", perf_name<ShortName>.data(), diff * 1000'000.);
}
// TODO: handle push(), currently ignored