[cairo] cairo+pixman profiling

Nguyen Vu Hung vuhung16plus at gmail.com
Mon Nov 5 19:03:04 PST 2007


Hi all,

I've tried profiling my application with gdprof. You can see the
result at the end of this email.

My questions are:

1. Where fbRasterizeEdges and other cairo_pixman_* are called inside
cairo? How do I optimize them?

2. Where unpremultiply_data is callled? What this function does?

BTW, because I am new to profiling and performance optimization,
suggests and comments are appreciated.

  20.12    267.68   267.68                             fbRasterizeEdges
[snip]
  7.18    776.12    95.46
_cairo_pixman_composite_solid_mask_nx8x8888mmx
  4.23    832.34    56.22                             unpremultiply_data
[snip]
  2.18    908.68    28.94
_cairo_pixman_render_edge_init
  1.21    924.78    16.10
_cairo_pixman_render_sample_floor_y
  1.04    938.56    13.78
_cairo_pixman_render_sample_ceil_y
[snip]
  0.87    987.29    11.53
_cairo_traps_add_trap_from_points
[snip]
  0.68   1007.55     9.01
_cairo_bentley_ottmann_tessellate_polygon
  0.66   1016.28     8.74                             _cairo_fixed_from_double
  0.64   1024.81     8.53                             _cairo_pixman_rende

[vuhung@ src]$ uname -a
Linux  2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686
GNU/Linux[vuhung at teriyaki src]$ gcc --version | grep gcc
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)
[vuhung@ src]$ g++ --version | grep g++
g++ (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)
[vuhung@ src]$
[vuhung at src]$ gprof --version | grep gprof | grep GNU
GNU gprof 2.15.92.0.2

cairo 1.4.10

-- 
Best Regards,
Nguyen Hung Vu
vuhung16plus{remove}@gmail.dot.com
An inquisitive look at Harajuku
http://www.flickr.com/photos/vuhung/sets/72157600109218238/


More information about the cairo mailing list