mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Measure CPU usage in Workers
This commit is contained in:
@@ -265,6 +265,7 @@ public:
|
||||
Json::Value ret (Json::objectValue);
|
||||
|
||||
ret["threads"] = m_workers.getNumberOfThreads ();
|
||||
ret["cpu"] = String::fromNumber <int> (m_workers.getUtilization() * 100) + "%";
|
||||
|
||||
Json::Value priorities = Json::arrayValue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user