From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17272 invoked by alias); 3 Nov 2008 15:04:51 -0000 Received: (qmail 16950 invoked by uid 22791); 3 Nov 2008 15:04:50 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 03 Nov 2008 15:04:13 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id mA3F4BK1007112; Mon, 3 Nov 2008 10:04:11 -0500 Received: from zebedee.pink (vpn-12-82.rdu.redhat.com [10.11.12.82]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mA3F49nO031530; Mon, 3 Nov 2008 10:04:09 -0500 Message-ID: <490F12E9.3020208@redhat.com> Date: Mon, 03 Nov 2008 15:04:00 -0000 From: Andrew Haley User-Agent: Thunderbird 2.0.0.17 (X11/20080914) MIME-Version: 1.0 To: ffileppo CC: java , classpath Subject: Re: [GCJ] Performance of GUI applications on embedded systems References: <490F101C.7030606@redhat.com> In-Reply-To: <490F101C.7030606@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2008-11/txt/msg00012.txt.bz2 Andrew Haley wrote: > ffileppo wrote: >>>> oprofile is your friend. If you can get oprofile working on your >>>> target system, please use it and find out if it does what you need. >>> I did it. The answer is appended. >>> >>> The problem is that the program is spending almost all of the time >>> generating stack traces, millions and millions of them. >>> > >> Hi Andrew, >> thanks a lot for your help. >> >> Do you have any ideas to fix this problem? > > Here's one improvement. If you can get rid of the places in the GTK peers > where class and method lookups are performed at runtime you'll probably > have a fix. This shouldn't be a massive amount of work, just rather > boring. Now, 163269 22.8358 libgcj.so.10.0.0 libgcj.so.10.0.0 _Jv_platform_gettimeofday() calls to _Jv_platform_gettimeofday() are almost a quarter (!) of the total runtime. I think that's your fault. Change your Timer.startTime to something a little less aggressive. :-) Andrew.