r272604 - [docs] Coverage: Document the profile merge pool specifier

Sean Silva via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 14 19:49:59 PDT 2016


Thanks!

On Tue, Jun 14, 2016 at 10:30 AM, Vedant Kumar <vsk at apple.com> wrote:

> I think David got rid of that limitation.
>
> The related warning in compiler-rt does not reflect this:
>
>   PROF_WARN("%%m specifier can only be specified once at the end of
> %s.\n", ...);
>
> Fixed the warning in r272685.
>
> thanks,
> vedant
>
> > On Jun 13, 2016, at 8:13 PM, Sean Silva <chisophugis at gmail.com> wrote:
> >
> >
> >
> > On Mon, Jun 13, 2016 at 5:42 PM, Vedant Kumar via cfe-commits <
> cfe-commits at lists.llvm.org> wrote:
> > Author: vedantk
> > Date: Mon Jun 13 19:42:12 2016
> > New Revision: 272604
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=272604&view=rev
> > Log:
> > [docs] Coverage: Document the profile merge pool specifier
> >
> > Modified:
> >     cfe/trunk/docs/SourceBasedCodeCoverage.rst
> >
> > Modified: cfe/trunk/docs/SourceBasedCodeCoverage.rst
> > URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/SourceBasedCodeCoverage.rst?rev=272604&r1=272603&r2=272604&view=diff
> >
> ==============================================================================
> > --- cfe/trunk/docs/SourceBasedCodeCoverage.rst (original)
> > +++ cfe/trunk/docs/SourceBasedCodeCoverage.rst Mon Jun 13 19:42:12 2016
> > @@ -78,6 +78,14 @@ directory structure will be created.  Ad
> >
> >  * "%h" expands out to the hostname of the machine running the program.
> >
> > +* "%Nm" expands out to the instrumented binary's signature. When this
> pattern
> > +  is specified, the runtime creates a pool of N raw profiles which are
> used for
> > +  on-line profile merging. The runtime takes care of selecting a raw
> profile
> > +  from the pool, locking it, and updating it before the program exits.
> If N is
> > +  not specified (i.e the pattern is "%m"), it's assumed that ``N = 1``.
> N must
> > +  be between 1 and 9. The merge pool specifier can only occur once per
> filename
> > +  pattern.
> >
> > There's also a limitation on the position IIRC (has to be at end).
> >
> > -- Sean Silva
> >
> > +
> >  .. code-block:: console
> >
> >      # Step 2: Run the program.
> >
> >
> > _______________________________________________
> > cfe-commits mailing list
> > cfe-commits at lists.llvm.org
> > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160614/31f0837e/attachment.html>


More information about the cfe-commits mailing list