Output pc profile statistics once gathered.

This commit is contained in:
Andrew Cagney 1997-10-21 07:40:00 +00:00
parent e2f8ffb736
commit aa324b9b1e
2 changed files with 5 additions and 9 deletions

View file

@ -1,3 +1,7 @@
Tue Oct 21 17:39:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
* interp.c (sim_info): Call profile_print.
Mon Oct 20 13:31:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
* Makefile.in (SIM_OBJS): Add sim-profile.o module.

View file

@ -782,15 +782,6 @@ sim_info (sd,verbose)
pr_addr (STATE_MEM_BASE (sd)));
#if !defined(FASTSIM)
#if 0
/* at present this simulator executes one instruction per
simulator cycle. Consequently this data never changes */
if (instruction_fetch_overflow != 0)
sim_io_printf (sd, "Instruction fetches = 0x%08X%08X\n",
instruction_fetch_overflow, instruction_fetches);
else
sim_io_printf (sd, "Instruction fetches = %d\n", instruction_fetches);
#endif
/* It would be a useful feature, if when performing multi-cycle
simulations (rather than single-stepping) we keep the start and
end times of the execution, so that we can give a performance
@ -810,6 +801,7 @@ sim_info (sd,verbose)
/* profile minpc */
/* profile maxpc */
}
profile_print (sd, STATE_VERBOSE_P (sd), NULL, NULL);
}