This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: [GCJ] Performance of GUI applications on embedded systems
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.