@@ -138,6 +138,27 @@ void hmp_info_mice(Monitor *mon, const QDict *qdict)
qapi_free_MouseInfoList(mice_list);
}
+__attribute__ (( unused )) /* Until later in patch series */
+static void monitor_printf_RollingStats(Monitor *mon, const char *title,
+ RollingStats *r)
+{
+ RollingStatsValueList *list_entry = r->values;
+
+ monitor_printf(mon, "%s: Min/Max: %.8g, %.8g Mean: %.8g "
+ "(Weighted: %.8g) Count: %" PRIu64
+ " Values: ",
+ title, r->min, r->max, r->mean, r->weighted_mean, r->count);
+
+ while (list_entry) {
+ monitor_printf(mon, "%.8g@%" PRIu64 "%s",
+ list_entry->value->value,
+ list_entry->value->tag,
+ list_entry->next ? ", " : "");
+ list_entry = list_entry->next;
+ }
+ monitor_printf(mon, "\n");
+}
+
void hmp_info_migrate(Monitor *mon, const QDict *qdict)
{
MigrationInfo *info;