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

Aras Pranckevicius via cfe-dev cfe-dev at lists.llvm.org
Sun Jan 27 23:26:33 PST 2019

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

Not the lexer per se, but my current patch does have sections for "which
files the frontend spends time on", that I implemented by adding begin/end
sections in SemaPPCallbacks (code around here

The files are visible in any tracing viewer, e.g. SpeedScope (
https://www.speedscope.app/) nicely displays their filenames:

Aras Pranckevičius
work: http://unity3d.com
home: http://aras-p.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190128/84551df7/attachment.html>

More information about the cfe-dev mailing list