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

Chris Lattner via cfe-dev cfe-dev at lists.llvm.org
Fri Jan 25 20:39:06 PST 2019

> 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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190125/965a3413/attachment.html>

More information about the cfe-dev mailing list