This patch is a part of an attempt to obtain more timer data from the analyzer. In this patch, we try to use LLVM::TimeRecord to print the time that a specific checker callback takes while getting analyzed.
This patch currently handles ASTDecl.
The timer data is printed along with the -analyzer-display-progress outputs.
Running checker callbacks on: function : 0.0 ms ANALYZE (Syntax): test.c function : 1.8 ms Running checker callbacks on: function1 : 0.0 ms ANALYZE (Syntax): test.c function1 : 0.1 ms ANALYZE (Path, Inline_Regular): test.c function1 : 1.0 ms ANALYZE (Path, Inline_Regular): test.c function : 0.1 ms
clang-format: please reformat the code