RE: NGPT with GCOV?

"Howell, David P" <[email protected]>
Newsgroups gmane.linux.ngpt.devel
Message-ID <[email protected]>
This has always been problematic with shared libraries, and NGPT qualifies.
The issue is how to get the counts out of the shared library and into the 
profile file, as most of this is driven by atexit() processing for the APP 
where the counts are accessed and written to the profile file on exit. I 
recall seeing in a FAQ or mailing list that this is not solved in general 
for shared libraries on Linux using the GNU based tools.

I did some simple gprof analysis on the ngpt library by compiling with '-pg'
on (hacked into the configure generated makefile) and the linked the APP
with 
the static libpthread.a. The results did show hot spots in the code, and
with
gprof call tree statistics can be displayed. I tried this for the ngpt
thread 
capacity test 'test_str03 -d 6' to gather results.

Hope that this helps.

Dave Howell

-----Original Message-----
From: Paul Larson [mailto:[email protected]]
Sent: Wednesday, May 08, 2002 4:54 PM
To: '[email protected]'
Subject: [pthreads-devel] NGPT with GCOV?


I'm attempting to do some kind of code coverage analysis of the NGPT
library itself to see how much code I'm hitting with my test cases.  Has
anyone else attempted this?  The obvious idea is to try gcov, so I just
added -fprofile-arcs -ftest-coverage to the cflags in the top level
makefile.  This allowed me to see how many lines I was hitting in the
test programs that come with NGPT, but it doesn't show the code covered
in NGPT itself.  Does anyone know if it is even possible to do this with
a library, or have any other ideas for how to do this?

Thanks,
Paul Larson

_______________________________________________
pthreads-devel mailing list
[email protected]
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/pthreads-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.