Re: Profiling GTK within an application

2007-10-30 Thread Stefan Kost
Hi, Quoting Binary Chen [EMAIL PROTECTED]: On Sat, 2007-10-27 at 11:06 +0300, Stefan Kost wrote: Chris Rorvick schrieb: I'm attempting to profile GTK in an application and I'm wondering what methodology others use to accomplish this. Is there any documentation that addresses this topic

Re: Profiling GTK within an application

2007-10-30 Thread Emmanuele Bassi
On Tue, 2007-10-30 at 08:03 +0100, Stefan Kost wrote: This is most likely caused by cairo. You should also see a bit less CPU usage in 2.12 compared to 2.10 (or more precise newer cairo should perform a bit better). Which version of cairo will cause this problem, more precise?

Re: Profiling GTK within an application

2007-10-30 Thread Chris Rorvick
Stefan Kost wrote: Chris Rorvick schrieb: I figured out that Sun's dtrace tool allows me to basically script a sampling profiler just as you describe. Very cool program. My program is spending more than 50% of its userland time executing code in glib, and a vast majority of that is split

Re: Profiling GTK within an application

2007-10-29 Thread Chris Rorvick
Stefan Kost wrote: This is most likely caused by cairo. You should also see a bit less CPU usage in 2.12 compared to 2.10 (or more precise newer cairo should perform a bit better). For some reason, this happens to be one of two libraries that I'm statically linking in. I wasn't seeing a

Re: Profiling GTK within an application

2007-10-29 Thread Murray Cumming
On Mon, 2007-10-29 at 12:47 -0500, Chris Rorvick wrote: Stefan Kost wrote: This is most likely caused by cairo. You should also see a bit less CPU usage in 2.12 compared to 2.10 (or more precise newer cairo should perform a bit better). For some reason, this happens to be one of two

Re: Profiling GTK within an application

2007-10-29 Thread Brian J. Tarricone
Chris Rorvick wrote: My program is spending more than 50% of its userland time executing code in glib, and a vast majority of that is split evenly between two functions: g_slist_find() and g_slist_remove_all(). You should probably be using a different data structure. A linked list is not a

Re: Profiling GTK within an application

2007-10-29 Thread Stefan Kost
hi, Chris Rorvick schrieb: Stefan Kost wrote: This is most likely caused by cairo. You should also see a bit less CPU usage in 2.12 compared to 2.10 (or more precise newer cairo should perform a bit better). For some reason, this happens to be one of two libraries that I'm

Re: Profiling GTK within an application

2007-10-29 Thread Chris Rorvick
Stefan Kost wrote: I figured out that Sun's dtrace tool allows me to basically script a sampling profiler just as you describe. Very cool program. My program is spending more than 50% of its userland time executing code in glib, and a vast majority of that is split evenly between two

Re: Profiling GTK within an application

2007-10-29 Thread Binary Chen
On Sat, 2007-10-27 at 11:06 +0300, Stefan Kost wrote: Chris Rorvick schrieb: I'm attempting to profile GTK in an application and I'm wondering what methodology others use to accomplish this. Is there any documentation that addresses this topic that I should refer to? Any caveats worth

Re: Profiling GTK within an application

2007-10-27 Thread Chris Rorvick
Ivan Baldo wrote: 1 - application code profiling (gprof), it only profiles the code of the application without taking into account the libraries it uses and other factors like X and your h ardware and video card. 2 - application code and libraries code profiling (qprof), it

Re: Profiling GTK within an application

2007-10-27 Thread Stefan Kost
Chris Rorvick schrieb: I'm attempting to profile GTK in an application and I'm wondering what methodology others use to accomplish this. Is there any documentation that addresses this topic that I should refer to? Any caveats worth pointing out? Here is where I'm at ... I recently

Re: Profiling GTK within an application

2007-10-26 Thread Ivan Baldo
Hello Chris! There are different types of profiling: 1 - application code profiling (gprof), it only profiles the code of the application without taking into account the libraries it uses and other factors like X and your hardware and video card. 2 - application code and