python + gcov

L

labrach

Hi
I want to profile (and analyse coverage) some c++ code imported as a
python module
I've compiled python (2.4.2) with gcc 3.4.3 and flags=-Wall -fprofile-
arcs -ftest-coverage in order to use gcov. However, the python binary
does not generate any coverage file (such than *.gcno, gcda) during
execution.
any tips ?
or may be another method to profile c++ wrapped modules within
python ?

thanks

laurent
 
L

labrach

Some precisions :
I've forced the configuration options with the followings flags in the
Makefile.pre :
OPT='-Wall -fprofile-arcs -ftest-coverage -pg'
BASECFLAGS='-Wall -fprofile-arcs -ftest-coverage -pg'
LDFLAGS='-Wall -fprofile-arcs -ftest-coverage -pg'
XLINKER='-Wall -fprofile-arcs -ftest-coverage -pg'

But, the coverage files are not produced by a simple : python -c
'print "Hello"'
while the gmon.out is produced

Another questions is:
the wrapped c++ module is also compile with -pg flags (and -fprofile-
arcs -ftest-coverage as well) but the profile information does not
appear in the gmon.out
Do I need to make a static extension of my imported module to profile
it ?

thanks anyone ...

laurent
 
?

=?ISO-8859-1?Q?Gerhard_H=E4ring?=

[...] Do I need to make a static extension of my imported module to profile
it ?

I always bit the bullet and finally just did that.

-- Gerhard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top