qsp: add sort_by option to qsp_report

Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Emilio G. Cota 2018-08-16 23:14:40 -04:00 committed by Paolo Bonzini
parent fe9959a275
commit 0a22777c71
2 changed files with 34 additions and 7 deletions

View file

@ -13,7 +13,13 @@
#include "qemu/fprintf-fn.h"
void qsp_report(FILE *f, fprintf_function cpu_fprintf, size_t max);
enum QSPSortBy {
QSP_SORT_BY_TOTAL_WAIT_TIME,
QSP_SORT_BY_AVG_WAIT_TIME,
};
void qsp_report(FILE *f, fprintf_function cpu_fprintf, size_t max,
enum QSPSortBy sort_by);
bool qsp_is_enabled(void);
void qsp_enable(void);