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 02:18:32 +00:00
parent 3ac9b6c910
commit ef93a84078
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-04-21 Mike Frysinger <vapier@gentoo.org> 2010-04-21 Mike Frysinger <vapier@gentoo.org>
* sim-profile.h (sim_profile_print_bar): Use sim_cpu, not SIM_CPU. * sim-profile.h (sim_profile_print_bar): Use sim_cpu, not SIM_CPU.

View File

@ -466,7 +466,7 @@ scache_print_profile (SIM_CPU *cpu, int verbose)
i, i,
max_val < 10000 ? 5 : 10, max_val < 10000 ? 5 : 10,
sim_add_commas (buf, sizeof (buf), lengths[i])); sim_add_commas (buf, sizeof (buf), lengths[i]));
sim_profile_print_bar (sd, PROFILE_HISTOGRAM_WIDTH, sim_profile_print_bar (sd, cpu, PROFILE_HISTOGRAM_WIDTH,
lengths[i], max_val); lengths[i], max_val);
sim_io_printf (sd, "\n"); sim_io_printf (sd, "\n");
} }