Closed iloktionov closed 4 years ago
Windows: use GetSystemTimes function Linux: read /proc/stat file
GetSystemTimes
/proc/stat
Windows: use GetPerformanceInfo function, probably a couple of perf counters Linux: read /proc/meminfo or /proc/vmstat files
GetPerformanceInfo
/proc/meminfo
/proc/vmstat
This is easy to achieve in managed code with DriveInfo (performance should be tested though).
DriveInfo
TODO: find appropriate sources.
This is easy to achieve in managed code with NetworkInterface.GetIPStatistics() and IPGlobalProperties (performance should be tested though).
NetworkInterface.GetIPStatistics()
IPGlobalProperties
CPU
Windows: use
GetSystemTimes
function Linux: read/proc/stat
fileMemory
Windows: use
GetPerformanceInfo
function, probably a couple of perf counters Linux: read/proc/meminfo
or/proc/vmstat
filesDisk space (per volume)
This is easy to achieve in managed code with
DriveInfo
(performance should be tested though).Disk activity (per device)
TODO: find appropriate sources.
Network
This is easy to achieve in managed code with
NetworkInterface.GetIPStatistics()
andIPGlobalProperties
(performance should be tested though).