]> Git Repo - qemu.git/blame - include/qemu/qsp.h
Merge remote-tracking branch 'remotes/armbru/tags/pull-error-2018-10-22' into staging
[qemu.git] / include / qemu / qsp.h
CommitLineData
fe9959a2
EC
1/*
2 * qsp.c - QEMU Synchronization Profiler
3 *
4 * Copyright (C) 2018, Emilio G. Cota <[email protected]>
5 *
6 * License: GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
8 *
9 * Note: this header file can *only* be included from thread.h.
10 */
11#ifndef QEMU_QSP_H
12#define QEMU_QSP_H
13
14#include "qemu/fprintf-fn.h"
15
0a22777c
EC
16enum QSPSortBy {
17 QSP_SORT_BY_TOTAL_WAIT_TIME,
18 QSP_SORT_BY_AVG_WAIT_TIME,
19};
20
21void qsp_report(FILE *f, fprintf_function cpu_fprintf, size_t max,
d557de4a 22 enum QSPSortBy sort_by, bool callsite_coalesce);
fe9959a2
EC
23
24bool qsp_is_enabled(void);
25void qsp_enable(void);
26void qsp_disable(void);
996e8d9a 27void qsp_reset(void);
fe9959a2
EC
28
29#endif /* QEMU_QSP_H */
This page took 0.031877 seconds and 4 git commands to generate.