mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-20 22:48:39 -07:00
Provide a way to report the process load average, via a new
'guest-get-load' command.
This is only implemented for POSIX platforms providing 'getloadavg'.
Example illustrated with qmp-shell:
(QEMU) guest-get-load
{
"return": {
"load15m": 1.546875,
"load1m": 1.669921875,
"load5m": 1.9306640625
}
}
Windows has no native equivalent API, but it would be possible to
simulate it as illustrated here (BSD-3-Clause):
https://github.com/giampaolo/psutil/pull/1485
This is left as an exercise for future contributors.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Message-ID: <20241202121927.864335-1-berrange@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
|
||
|---|---|---|
| .. | ||
| installer | ||
| vss-win32 | ||
| channel-posix.c | ||
| channel-win32.c | ||
| channel.h | ||
| commands-bsd.c | ||
| commands-common-ssh.c | ||
| commands-common-ssh.h | ||
| commands-common.h | ||
| commands-linux.c | ||
| commands-posix-ssh.c | ||
| commands-posix.c | ||
| commands-win32.c | ||
| commands-windows-ssh.c | ||
| commands-windows-ssh.h | ||
| commands.c | ||
| cutils.c | ||
| cutils.h | ||
| guest-agent-command-state.c | ||
| guest-agent-core.h | ||
| main.c | ||
| meson.build | ||
| messages-win32.mc | ||
| qapi-schema.json | ||
| service-win32.c | ||
| service-win32.h | ||
| vss-win32.c | ||
| vss-win32.h | ||