HomePhabricator

[analyzer] Print time taken to analyze each function

Authored by RithikSharma on Jul 12 2021, 9:52 PM.

Description

[analyzer] Print time taken to analyze each function
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 save time before starting the analysis
and to print the time that a specific function takes while
getting analyzed.

The timer data is printed along with the
-analyzer-display-progress outputs.

ANALYZE (Syntax): test.c functionName : 0.4 ms
ANALYZE (Path, Inline_Regular): test.c functionName : 2.6 ms
Authored By: RithikSharma
Reviewer: NoQ, xazax.hun, teemperor, vsavchenko
Reviewed By: NoQ
Differential Revision: https://reviews.llvm.org/D105565

Details

Committed
RithikSharmaJul 12 2021, 9:52 PM
Reviewer
NoQ
Differential Revision
D105565: [analyzer] Print time taken to analyze each function
Parents
rG7987c46273c8: [OpaquePtr][ISel] Use ArgListEntry::IndirectType more
Branches
Unknown
Tags
Unknown