=== modified file 'src/bidi.c' --- src/bidi.c 2014-01-01 17:44:48 +0000 +++ src/bidi.c 2014-02-19 04:07:08 +0000 @@ -62,6 +62,7 @@ #include "buffer.h" #include "dispextern.h" #include "region-cache.h" +#include "systime.h" static bool bidi_initialized = 0; @@ -668,6 +669,8 @@ + bidi_cache_idx * sizeof (struct bidi_it)); databuf = xmalloc (alloc); bidi_cache_total_alloc += alloc; + fprintf (stderr, "%s [%f]: alloc %"pI"d bytes -> %p\n", __func__, + timespectod (current_timespec ()), alloc, databuf); memcpy (databuf, &bidi_cache_idx, sizeof (bidi_cache_idx)); memcpy (databuf + sizeof (bidi_cache_idx), @@ -752,6 +755,8 @@ -= (bidi_shelve_header_size + bidi_cache_idx * sizeof (struct bidi_it)); } + fprintf (stderr, "%s [%f]: free %p\n", __func__, + timespectod (current_timespec ()), databuf); xfree (p); }