aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-07-23 02:28:55 +0800
committerChristian Persch <chpe@src.gnome.org>2004-07-23 02:28:55 +0800
commit8239a246be6ca1a0dc9d128186f3f770eff8ebed (patch)
tree5193b3b8aad342f058ef6e764df832bc98893a09
parentb0797c8f3de7e0be7c616dc61f8f6323c9f98a98 (diff)
downloadgsoc2013-epiphany-8239a246be6ca1a0dc9d128186f3f770eff8ebed.tar
gsoc2013-epiphany-8239a246be6ca1a0dc9d128186f3f770eff8ebed.tar.gz
gsoc2013-epiphany-8239a246be6ca1a0dc9d128186f3f770eff8ebed.tar.bz2
gsoc2013-epiphany-8239a246be6ca1a0dc9d128186f3f770eff8ebed.tar.lz
gsoc2013-epiphany-8239a246be6ca1a0dc9d128186f3f770eff8ebed.tar.xz
gsoc2013-epiphany-8239a246be6ca1a0dc9d128186f3f770eff8ebed.tar.zst
gsoc2013-epiphany-8239a246be6ca1a0dc9d128186f3f770eff8ebed.zip
Ignore the microseconds part of the g_timer_elapsed call, its redundant
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).
-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