aras-p / ClangBuildAnalyzer

Clang build analysis tool using -ftime-trace
The Unlicense
1.01k stars 65 forks source link

Several "WARN: unknown trace event" with trunk clang. #22

Closed nico closed 5 years ago

nico commented 5 years ago

I'm using clang built at http://reviews.llvm.org/rG64a362e7216a43e (from Oct 2). With that, ClangBuildAnalyzer prints these for every TU:

WARN: unknown trace event 'PerFunctionPasses' in 'out/src/gn/ninja_generated_file_target_writer_unittest.json', skipping.
WARN: unknown trace event 'PerModulePasses' in 'out/src/gn/ninja_generated_file_target_writer_unittest.json', skipping.
WARN: unknown trace event 'CodeGenPasses' in 'out/src/gn/ninja_generated_file_target_writer_unittest.json', skipping.

These were added in https://reviews.llvm.org/D68161 .

Looks like https://reviews.llvm.org/D69750 also adds "DebugType", but my compiler doesn't have that yet.

aras-p commented 5 years ago

@nico I did the code fix, but did not actually check if it works... :)