sim: profile: implement --profile-file backend

Need to update the sim_profile_print_bar() call after the common/ changes.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2010-04-22 00:40:44 +00:00
parent f093db8c9c
commit f9bdfd293e
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-04-21 Mike Frysinger <vapier@gentoo.org>
* profile.c (sim_profile_print_bar): Add cpu argument.
2010-03-30 Mike Frysinger <vapier@gentoo.org>
* devices.c (device_error): Add const to message.

View File

@ -2042,7 +2042,7 @@ print_parallel (SIM_CPU *cpu, int verbose)
max_name_len, slot_names[i],
max_val < 10000 ? 5 : 10,
COMMAS (INSNS_IN_SLOT (i)));
sim_profile_print_bar (sd, PROFILE_HISTOGRAM_WIDTH,
sim_profile_print_bar (sd, cpu, PROFILE_HISTOGRAM_WIDTH,
INSNS_IN_SLOT (i),
max_val);
sim_io_printf (sd, "\n");