[Qt-interest] Application consuming 60% of CPU usage ..
Sean Harmer
sean.harmer at maps-technology.com
Tue Oct 20 11:52:51 CEST 2009
On Tuesday 20 Oct 2009 10:10:45 Chandru... wrote:
> Hi friends,
>
> I developed my qt application with QGraphicsView and QGraphicsItem ..
>
> most of the button i painted my own in different shapes ..
>
> the problem is when i run my application the Xorg consumes 60% of the CPU
> usage ...
>
> why it consuming this much process ...?
> is there any way to overcome this problem .. just to reduce by 20% or 30 %
>
> also suggest me a good profiling tool for Qt ..
valgrind --tool=callgrind <your-app>
Then look at the output with kcachegrind, sort on the "self" column to see
what is taking the time.
Eliminate the bottleneck. Rinse and repeat.
Sean
ps Valgrind also has other tools useful for finding memory leaks, common
threading problems etc. Read the docs or google for more info
More information about the Qt-interest-old
mailing list