This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: merging of gcov's .da data files


Uttam Pawar wrote:
Hi,

Is there a way or a utility to merge, multiple data (.da) files
generated by gcov for same executable but with different test data set?
I know, gcov supports merging of data from multiple run of a program but
the condition is not to remove or move older data files. It will be
useful if gcov merges the data even if the older data files don't reside
in the same directory. Having an environment variable which points to a directory where these
files are located is one way to solve this issue. Another way to have
external utility which does the merging.
It should be relatively straight forward to get gcov's read_count_file
function to read & merge multiple files -- it can merge from one file
after all.

Also, it will be useful to show just the differences between multiple
data files generated from different executable (due to different
platforms) but compiled using same source code, probably with same
options.
Unless those targets are very similar, the basic block graphs are likely
to be different.  Perhaps some post processing of separately generated
gcov output could be done?

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]