Output pc profile statistics once gathered.
authorAndrew Cagney <cagney@redhat.com>
Tue, 21 Oct 1997 07:40:00 +0000 (07:40 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 21 Oct 1997 07:40:00 +0000 (07:40 +0000)
sim/mips/ChangeLog
sim/mips/interp.c

index 22594aef0b51d0b0b5859c978faa440f5b0efedd..70e602aa85be06a2bbac14d6a3f263a284a53a56 100644 (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.
index 386d28a71d999376ab6b721332f55fafd9c2a7e9..810c51b93ed4dc904a0fa1595c8a0b4ecf716860 100644 (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);
 }