This is an archive of the discontinued LLVM Phabricator instance.

[analyzer][WIP] Print time taken to analyze checker callbacks
Needs ReviewPublic

Authored by RithikSharma on Jul 15 2021, 12:19 PM.

Details

Summary

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

Diff Detail

Event Timeline

RithikSharma created this revision.Jul 15 2021, 12:19 PM
RithikSharma requested review of this revision.Jul 15 2021, 12:19 PM