[cfe-dev] [RFC] Adding a different mode of "where clang spends time" reporting (timeline/flamegraph style)

Richard Smith via cfe-dev cfe-dev at lists.llvm.org
Sat Jan 26 01:25:49 PST 2019


On Fri, 25 Jan 2019, 20:39 Chris Lattner via cfe-dev, <
cfe-dev at lists.llvm.org> wrote:

>
>
> On Jan 24, 2019, at 6:36 PM, Richard Smith via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>
> I think this is a really good direction, and a sorely missing feature.
> I very much like how user-focused it is: all of your time categories
> correspond to steps that I'd expect to be meaningful and actionable
> for users.
>
> Have you considered putting begin/end markers in the lexer for when we
> enter and leave a file, to make it easier to see which header files
> are expensive?
>
>
> The lexer itself is so cheap that it is effectively free.  Are you trying
> to capture lexer time itself, or the time taken for AST building and sema
> of the declarations defined in the header?
>

The latter. The idea is to expose to users a measure of how much a
particular #include costs.

-Chris
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190126/ca9c5c2a/attachment.html>


More information about the cfe-dev mailing list