[PATCH] D68252: [Stats] Add ALWAYS_ENABLED_STATISTIC enabled regardless of LLVM_ENABLE_STATS.
Volodymyr Sapsai via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 30 16:09:35 PDT 2019
vsapsai created this revision.
vsapsai added reviewers: dsanders, bogner, rtereshin.
Herald added subscribers: ributzka, dexonsmith, jkorous, hiraditya.
Herald added a project: LLVM.
The intended usage is to measure relatively expensive operations. So the
cost of the statistic is negligible compared to the cost of a measured
operation and can be enabled all the time without impairing the
compilation time.
The change in clang is an example of where ALWAYS_ENABLED_STATISTIC can be
used. I'm also planning to add more stats for header search and modules.
rdar://problem/55715134
https://reviews.llvm.org/D68252
Files:
clang/include/clang/Basic/FileManager.h
clang/include/clang/Lex/HeaderSearch.h
clang/lib/Basic/FileManager.cpp
clang/lib/Lex/HeaderSearch.cpp
llvm/include/llvm/ADT/Statistic.h
llvm/lib/Support/Statistic.cpp
llvm/unittests/ADT/StatisticTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68252.222517.patch
Type: text/x-patch
Size: 14170 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190930/06201de8/attachment-0001.bin>
More information about the cfe-commits
mailing list