2017-08-08 19:53:15 +02:00
|
|
|
/*
|
|
|
|
* qsp.c - QEMU Synchronization Profiler
|
|
|
|
*
|
|
|
|
* Copyright (C) 2018, Emilio G. Cota <cota@braap.org>
|
|
|
|
*
|
|
|
|
* License: GNU GPL, version 2 or later.
|
|
|
|
* See the COPYING file in the top-level directory.
|
|
|
|
*
|
|
|
|
* Note: this header file can *only* be included from thread.h.
|
|
|
|
*/
|
|
|
|
#ifndef QEMU_QSP_H
|
|
|
|
#define QEMU_QSP_H
|
|
|
|
|
2018-08-17 05:14:40 +02:00
|
|
|
enum QSPSortBy {
|
|
|
|
QSP_SORT_BY_TOTAL_WAIT_TIME,
|
|
|
|
QSP_SORT_BY_AVG_WAIT_TIME,
|
|
|
|
};
|
|
|
|
|
2019-04-17 21:17:54 +02:00
|
|
|
void qsp_report(size_t max, enum QSPSortBy sort_by,
|
|
|
|
bool callsite_coalesce);
|
2017-08-08 19:53:15 +02:00
|
|
|
|
|
|
|
bool qsp_is_enabled(void);
|
|
|
|
void qsp_enable(void);
|
|
|
|
void qsp_disable(void);
|
2018-08-17 05:29:49 +02:00
|
|
|
void qsp_reset(void);
|
2017-08-08 19:53:15 +02:00
|
|
|
|
|
|
|
#endif /* QEMU_QSP_H */
|