aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Object/ELFObjectFileTest.cpp
diff options
context:
space:
mode:
authorArseniy Zaostrovnykh <necto.ne@gmail.com>2025-10-13 17:18:27 +0200
committerGitHub <noreply@github.com>2025-10-13 17:18:27 +0200
commitbb3b0203c0fb25a2aa0712b44c78562dd2021b83 (patch)
tree4da4498ce17431a64aef44216569e7ecc40d282a /llvm/unittests/Object/ELFObjectFileTest.cpp
parent1db148cc946eb95fefd5399766e379fc030eef78 (diff)
downloadllvm-bb3b0203c0fb25a2aa0712b44c78562dd2021b83.zip
llvm-bb3b0203c0fb25a2aa0712b44c78562dd2021b83.tar.gz
llvm-bb3b0203c0fb25a2aa0712b44c78562dd2021b83.tar.bz2
[clang][analyzer] Print empty per-EP metrics as empty CSV cells, fix missing PathRunningTime metric (#162839)
To avoid information loss, introduce a difference between unset stats and 0 for statistics that are supposed to be set once per entry point. Now, if the statistic is not set for an entry point, the corresponding CSV cell will be empty, and not 0. Thanks to this differentiation, I noticed that `PathRunningTime` was actually never set, and fixed that. Additionally, this patch enables the timers if `DumpEntryPointStatsToCSV` is set, because in most cases you dump these stats to get a detailed view on analyzer performance. Finally, I added a dedicated debug checker that demonstrates the use of a statistic and tested the set and unset scenarios explicitly. -- CPP-7097 --------- Co-authored-by: DonĂ¡t Nagy <donat.nagy@ericsson.com>
Diffstat (limited to 'llvm/unittests/Object/ELFObjectFileTest.cpp')
0 files changed, 0 insertions, 0 deletions