mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Log performance aggregates as logger messages
This commit is contained in:
@@ -227,11 +227,8 @@ void Logger::PrintPerformanceStats() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (auto& p : items) {
|
for (auto& p : items) {
|
||||||
if (log2) {
|
auto s = p.second + std::string(max_size - p.second.size(), ' ') + ": " + std::to_string(p.first);
|
||||||
(*log2) << p.second << std::string(max_size - p.second.size(), ' ') << ": " << p.first << std::endl;
|
Message(LOG_PERF, s);
|
||||||
} else if (wlog2) {
|
|
||||||
(*wlog2) << p.second.c_str() << std::string(max_size - p.second.size(), ' ').c_str() << ": " << p.first << std::endl;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user