mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
tcg: add separate monitor command to dump opcode counters
Currently 'info jit' outputs half of the information to monitor and the rest to qemu log. Dumping opcode counts to monitor as a part of 'info jit' command doesn't sound useful. Add new monitor command 'info opcount' that only dumps opcode counters. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Reviewed-by: Richard Henderson <rth@twiddle.net> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
This commit is contained in:
parent
d86fb03469
commit
246ae24d7d
5 changed files with 27 additions and 4 deletions
12
monitor.c
12
monitor.c
|
@ -1042,6 +1042,11 @@ static void do_info_jit(Monitor *mon, const QDict *qdict)
|
|||
dump_drift_info((FILE *)mon, monitor_fprintf);
|
||||
}
|
||||
|
||||
static void do_info_opcount(Monitor *mon, const QDict *qdict)
|
||||
{
|
||||
dump_opcount_info((FILE *)mon, monitor_fprintf);
|
||||
}
|
||||
|
||||
static void do_info_history(Monitor *mon, const QDict *qdict)
|
||||
{
|
||||
int i;
|
||||
|
@ -2738,6 +2743,13 @@ static mon_cmd_t info_cmds[] = {
|
|||
.help = "show dynamic compiler info",
|
||||
.mhandler.cmd = do_info_jit,
|
||||
},
|
||||
{
|
||||
.name = "opcount",
|
||||
.args_type = "",
|
||||
.params = "",
|
||||
.help = "show dynamic compiler opcode counters",
|
||||
.mhandler.cmd = do_info_opcount,
|
||||
},
|
||||
{
|
||||
.name = "kvm",
|
||||
.args_type = "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue