vte r2161 - in trunk: . src



Author: behdad
Date: Thu Nov 20 19:28:36 2008
New Revision: 2161
URL: http://svn.gnome.org/viewvc/vte?rev=2161&view=rev

Log:
2008-11-20  Behdad Esfahbod  <behdad gnome org>

        * src/vtepangocairo.c (font_info_cache_ascii),
        (font_info_allocate), (font_info_free),
        (font_info_find_for_context):
        Make profiling messages print the info pointer.



Modified:
   trunk/ChangeLog
   trunk/src/vtepangocairo.c

Modified: trunk/src/vtepangocairo.c
==============================================================================
--- trunk/src/vtepangocairo.c	(original)
+++ trunk/src/vtepangocairo.c	Thu Nov 20 19:28:36 2008
@@ -252,7 +252,9 @@
 	}
 
 #ifdef VTEPANGOCAIRO_PROFILE
-	g_message ("vtepangocairo: cached %d ASCII letters", info->coverage_count[0]);
+	g_message ("vtepangocairo: %p cached %d ASCII letters",
+		   info,
+		   info->coverage_count[0]);
 #endif
 }
 
@@ -314,12 +316,13 @@
 {
 	struct font_info *info;
 
+	info = g_slice_new0 (struct font_info);
+
 #ifdef VTEPANGOCAIRO_PROFILE
-	g_message ("vtepangocairo: allocating font_info");
+	g_message ("vtepangocairo: %p allocating font_info",
+		   info);
 #endif
 
-	info = g_slice_new0 (struct font_info);
-
 	info->layout = pango_layout_new (context);
 
 	font_info_measure_font (info);
@@ -333,7 +336,8 @@
 	gunichar i;
 
 #ifdef VTEPANGOCAIRO_PROFILE
-	g_message ("vtepangocairo: freeing font_info.  coverages %d = %d + %d + %d",
+	g_message ("vtepangocairo: %p freeing font_info.  coverages %d = %d + %d + %d",
+		   info,
 		   info->coverage_count[0],
 		   info->coverage_count[1],
 		   info->coverage_count[2],
@@ -446,7 +450,8 @@
 	info = g_hash_table_lookup (font_info_for_context, context);
 	if (G_LIKELY (info)) {
 #ifdef VTEPANGOCAIRO_PROFILE
-		g_message ("vtepangocairo: found font_info in cache");
+		g_message ("vtepangocairo: %p found font_info in cache",
+			   info);
 #endif
 		return font_info_reference (info);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]