#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
-#include "coretypes.h"
-#include "tm.h"
-#include "intl.h"
-#include "rtl.h"
-#include "toplev.h"
+#include "timevar.h"
#ifndef HAVE_CLOCK_T
typedef int clock_t;
#define CLOCKS_TO_MSEC (1 / (double)CLOCKS_PER_SEC)
#endif
-#include "flags.h"
-#include "timevar.h"
+/* True if timevars should be used. In GCC, this happens with
+ the -ftime-report flag. */
bool timevar_enable;
struct timevar_stack_def *popped = stack;
gcc_assert (&timevars[timevar] == stack->timevar);
-
+
/* What time is it? */
get_time (&now);
TIMEVAR. */
start_time = now;
- fputs (_("\nExecution times (seconds)\n"), fp);
+ fputs ("\nExecution times (seconds)\n", fp);
for (id = 0; id < (unsigned int) TIMEVAR_LAST; ++id)
{
struct timevar_def *tv = &timevars[(timevar_id_t) id];
}
/* Print total time. */
- fputs (_(" TOTAL :"), fp);
+ fputs (" TOTAL :", fp);
#ifdef HAVE_USER_TIME
fprintf (fp, "%7.2f ", total->user);
#endif
{
long all_time = get_run_time ();
fprintf (stderr,
- _("time in %s: %ld.%06ld (%ld%%)\n"),
+ "time in %s: %ld.%06ld (%ld%%)\n",
str, total / 1000000, total % 1000000,
all_time == 0 ? 0
: (long) (((100.0 * (double) total) / (double) all_time) + .5));