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:
parent
cfb3448922
commit
433815f5bd
3 changed files with 204 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue