mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
hmp: add basic "info stats" implementation
Add an HMP command to retrieve statistics collected at run-time. The command will retrieve and print either all VM-level statistics, or all vCPU-level statistics for the currently selected CPU. Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
cfb3448922
commit
433815f5bd
@@ -894,3 +894,16 @@ SRST
|
||||
``info via``
|
||||
Show guest mos6522 VIA devices.
|
||||
ERST
|
||||
|
||||
{
|
||||
.name = "stats",
|
||||
.args_type = "target:s",
|
||||
.params = "target",
|
||||
.help = "show statistics; target is either vm or vcpu",
|
||||
.cmd = hmp_info_stats,
|
||||
},
|
||||
|
||||
SRST
|
||||
``stats``
|
||||
Show runtime-collected statistics
|
||||
ERST
|
||||
|
||||
Reference in New Issue
Block a user