Hi,

I am trying to use Callgrind to run determine the code coverage of a large
number of PDF files opened in Adobe Reader to then provide me with a much
smaller set of files that have unique code coverage.

The method is as follows:

1. I run Adobe Reader in Valgrind with the Callgrind tool enabled.
2. Then open the first file.
3. Now run Callgrind_Control (callgrind_control -w /tmp/ -s)
4. Note the number of "Basic Blocks"
5. Now close that file and open another
6. Repeat steps 3 to 5 for each file and only keep files that show new Basic
blocks have been hit

The issue I have is that this works fine if I use evince to read the files
but when I run Adobe Reader in the callgrind tool, callgrind_control does
not give me any output, just hangs with the "[requesting Status]" prompt:

/tmp$ callgrind_control -w /tmp/ -s
 [requesting 'Status'...]

I suspect that this is because Adobe Reader is opening a number of processes
when run, but the main process callgrind.out file does not contain any
output, all output goes into the other process files.

/tmp$ ps -ef |grep Adobe
steve    20800  4754  1 10:07 pts/2    00:00:01
/opt/Adobe/Reader9/Reader/intellinux/bin/acroread
/tmp$ ls -ltrh
total 448K
-rw------- 1 steve steve   0 2010-07-12 10:07 callgrind.out.20800
-rw------- 1 steve steve 68K 2010-07-12 10:07 callgrind.out.20802
-rw------- 1 steve steve 67K 2010-07-12 10:07 callgrind.out.20801
-rw------- 1 steve steve   0 2010-07-12 10:07 callgrind.out.20807
-rw------- 1 steve steve 73K 2010-07-12 10:07 callgrind.out.20810
-rw------- 1 steve steve   0 2010-07-12 10:07 callgrind.out.20815
-rw------- 1 steve steve 74K 2010-07-12 10:07 callgrind.out.20805
-rw------- 1 steve steve   0 2010-07-12 10:07 callgrind.out.20817
-rw------- 1 steve steve   0 2010-07-12 10:07 callgrind.out.20819
-rw------- 1 steve steve 76K 2010-07-12 10:07 callgrind.out.20821
-rw------- 1 steve steve   0 2010-07-12 10:07 callgrind.out.20824
-rw------- 1 steve steve 80K 2010-07-12 10:07 callgrind.out.20827
-rw------- 1 steve steve   0 2010-07-12 10:07 callgrind.out.20828
-rw-r--r-- 1 steve steve   6 2010-07-12 10:07 callgrind.cmd


Is there a way around this issue?

Many thanks,
Steve Mortimer
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to