https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47618

--- Comment #26 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to qinzhao from comment #25)
> (In reply to Martin Liška from comment #24)
> > 
> > > How about the patch for the above 2? has it been committed?
> > 
> > It has been there for a while, please take a look at:
> > 
> > $ gcov-tool merge --help
> > merge: unrecognized option '--help'
> > Merge subcomand usage:  merge [options] <dir1> <dir2>         Merge coverage
> > file contents
> >     -o, --output <dir>                  Output directory
> >     -v, --verbose                       Verbose mode
> >     -w, --weight <w1,w2>                Set weights (float point values)
> 
> two more questions on this merge tool:
> 1. it can only merge two directories at one time. So, for multiple
> directories, for example "n", we have to invoke gcov-tool merge n-1 times in
> order to merge all of them?

Yep. I guess one can write a simple bash script that does that.

> 2. Intel compiler (icc)'s profmerge is able to merge all the .dyn files
> under one directory, does gcc have such functionality currently?

We have folder-base merging where we search for all .gcda files and we merge
them to a destination folder.

Reply via email to