diff options
author | Mark Kanda <mark.kanda@oracle.com> | 2022-04-26 12:17:35 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-06-14 16:50:30 +0200 |
commit | 433815f5bdf71b5b2c47d9f1104816b95b551c49 (patch) | |
tree | 3b2174bd33dc9e2ecc21f983bbfe419d11d1bdda /include/monitor/hmp.h | |
parent | cfb344892209783a600e80053dba1cfeee4bd16a (diff) | |
download | qemu-433815f5bdf71b5b2c47d9f1104816b95b551c49.zip qemu-433815f5bdf71b5b2c47d9f1104816b95b551c49.tar.gz qemu-433815f5bdf71b5b2c47d9f1104816b95b551c49.tar.bz2 |
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>
Diffstat (limited to 'include/monitor/hmp.h')
-rw-r--r-- | include/monitor/hmp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/monitor/hmp.h b/include/monitor/hmp.h index 96d0148..2e89a97 100644 --- a/include/monitor/hmp.h +++ b/include/monitor/hmp.h @@ -133,5 +133,6 @@ void hmp_info_dirty_rate(Monitor *mon, const QDict *qdict); void hmp_calc_dirty_rate(Monitor *mon, const QDict *qdict); void hmp_human_readable_text_helper(Monitor *mon, HumanReadableText *(*qmp_handler)(Error **)); +void hmp_info_stats(Monitor *mon, const QDict *qdict); #endif |