help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: profiling Octave


From: Jaroslav Hajek
Subject: Re: profiling Octave
Date: Fri, 6 Feb 2009 12:18:48 +0100

On Thu, Feb 5, 2009 at 7:50 PM, David Bateman <address@hidden> wrote:
> John W. Eaton wrote:
>>
>> On  5-Feb-2009, Jaroslav Hajek wrote:
>>
>> | has anyone experience profiling with gcc/g++?
>> | I wanted to try profiling Octave to identify hot spots in the
>> | interpreter, but can't get it to work.
>> | I configured using configure CFLAGS="-O2 -pg" CXXFLAGS="-O2 -pg"
>> | LDFLAGS=-pg, then built and ran ./run-octave on a test script.
>> | It produced a gmon.out file, but `gprof src/octave' does not show
>> | anything. So far I was unable to find any useful information how to
>> | get this working. A similar strategy works on a single sample C++ file
>> | (g++ -pg, then gprof).
>> | Has anyone experience with this? I would really prefer to do this with
>> | GCC rather than a commercial compiler.
>>
>> Can gprof handle shared libraries?  You might need to build a copy of
>> Octave that is statically linked.
>>
>> jwe
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>>
>>
>
> I did a bit of profiling a year or so ago in the thread
>
> http://www.nabble.com/speed-of-octave-symbol-table-code-to13353730.html
>
> and can confirm that I needed a statically linked version of octave
>
> D.
>
> --
> David Bateman                                address@hidden
> 35 rue Gambetta                              +33 1 46 04 02 18 (Home)
> 92100 Boulogne-Billancourt FRANCE            +33 6 72 01 06 33 (Mob)
>
>

I'm feeling a bit ignorant, but could you please share some knowledge?
I've configured with
./configure --enable-static --without-cholmod CFLAGS="-O2 -static -pg"
CXXFLAGS="-O2 -static -pg" LDFLAGS="-static -pg" ; make -j2

(cholmod was cusing problems) but ended up at the final linking stage
with a number of complaints for unresolved symbols from system runtime
libs (g++, gfortran, x11). Do I need to install static versions of
those? Or is there a way to overcome this?

thanks

-- 
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz


reply via email to

[Prev in Thread] Current Thread [Next in Thread]