Log thread count and memory usage on startup.

Helpful for diagnosing resource constrained systems.

Change-Id: I9e31298d6fa1f5243175350ba48699c0772d486c
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
pull/7678/head
Michael Meeks 2023-11-09 18:15:56 +00:00 committed by Caolán McNamara
parent 164159ab26
commit 2238a40cca
1 changed files with 4 additions and 0 deletions

View File

@ -5841,6 +5841,10 @@ int COOLWSD::innerMain()
std::string version, hash;
Util::getVersionInfo(version, hash);
LOG_INF("Coolwsd version details: " << version << " - " << hash << " - id " << Util::getProcessIdentifier() << " - on " << Util::getLinuxVersion());
LOG_INF("available memory: " << Util::getTotalSystemMemoryKb()/1024 << " MB");
LOG_INF("hardware threads: " << std::thread::hardware_concurrency());
#endif
initializeSSL();