From: ellson Date: Wed, 6 Feb 2008 17:23:22 +0000 (+0000) Subject: add memory estimation to -v output when creating a cario image surface X-Git-Tag: LAST_LIBGRAPH~32^2~4760 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df7f14493c1c183d17dfc587d5ff58521c328ef6;p=graphviz add memory estimation to -v output when creating a cario image surface analogous to gd messages --- diff --git a/plugin/pango/gvrender_pango.c b/plugin/pango/gvrender_pango.c index 3f2450287..8e2d701a6 100644 --- a/plugin/pango/gvrender_pango.c +++ b/plugin/pango/gvrender_pango.c @@ -164,6 +164,11 @@ static void cairogen_begin_page(GVJ_t * job) default: surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, job->width, job->height); + if (job->common->verbose) + fprintf(stderr, + "%s: allocating a %dK cairo image surface\n", + job->common->cmdname, + ROUND(job->width * job->height * 4 / 1024.)); break; } cr = cairo_create(surface);