[cfe-dev] Checkers time statistic
Plotnikov Dmitry via cfe-dev
cfe-dev at lists.llvm.org
Thu Oct 15 08:40:15 PDT 2015
Hello,
Sometimes Clang analyzer works slowly, so I implemented timers that
measure actual work time for each checker. This patch is using
llvm::Timer class for time tracking, and provides more detailed report
for -analyzer-stats option:
===-------------------------------------------------------------------------===
Miscellaneous Ungrouped Timers
===-------------------------------------------------------------------------===
---User Time--- --System Time-- --User+System-- ---Wall
Time--- --- Name ---
0.2760 ( 6.7%) 0.0760 ( 9.5%) 0.3520 ( 7.1%) 0.3398 (
6.9%) core.NullDereference
0.1560 ( 3.8%) 0.0440 ( 5.5%) 0.2000 ( 4.1%) 0.2346 (
4.8%) unix.Malloc
0.0680 ( 1.6%) 0.0160 ( 2.0%) 0.0840 ( 1.7%) 0.0652 (
1.3%) core.DynamicTypePropagation
0.0760 ( 1.8%) 0.0000 ( 0.0%) 0.0760 ( 1.5%) 0.0573 (
1.2%) core.CallAndMessage
...
Probably there is more convenient way to determine which checker is
working slowly?
---
Best Regards,
Dmitry Plotnikov,
Researcher at ISP RAS.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang_timers.patch
Type: text/x-patch
Size: 11583 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151015/09f1f55b/attachment.bin>
More information about the cfe-dev
mailing list