aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--lib/ephy-debug.c7
2 files changed, 12 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 641fef42d..d931d4670 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2004-07-22 Christian Persch <chpe@cvs.gnome.org>
+ * lib/ephy-debug.c: (ephy_profiler_dump):
+
+ Ignore the microseconds part
+ of the g_timer_elapsed call, its redundant information,
+ and breaks when the timer is over a second.
+ (ported from galeon).
+
+2004-07-22 Christian Persch <chpe@cvs.gnome.org>
+
* embed/ephy-embed-single.c:
* embed/ephy-embed-single.h:
* embed/mozilla/mozilla-embed-single.cpp:
diff --git a/lib/ephy-debug.c b/lib/ephy-debug.c
index 4f59c936e..a0f2929af 100644
--- a/lib/ephy-debug.c
+++ b/lib/ephy-debug.c
@@ -137,16 +137,15 @@ ephy_should_profile (const char *module)
static void
ephy_profiler_dump (EphyProfiler *profiler)
{
- long elapsed;
double seconds;
g_return_if_fail (profiler != NULL);
- seconds = g_timer_elapsed (profiler->timer, &elapsed);
+ seconds = g_timer_elapsed (profiler->timer, NULL);
- g_print ("[ %s ] %s %ld ms (%f s) elapsed\n",
+ g_print ("[ %s ] %s %f s elapsed\n",
profiler->module, profiler->name,
- elapsed / (G_USEC_PER_SEC / 1000), seconds);
+ seconds);
}
static void