[PATCH] D155187: [RemarkUtil] Add an option to collect remark count information given a list of keys.
Zain Jaffal via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 13 05:07:53 PDT 2023
zjaffal created this revision.
zjaffal added reviewers: fhahn, thegameg, anemet, JDevlieghere, paquette.
Herald added a subscriber: StephenFan.
Herald added a project: All.
zjaffal requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
There are remarks that have a key,value pair where it would be
benificial to collect inforation for a given key and report it on file
or function basis.
`llvm-remarkutil remark-count` provides the utility to collect counts
for a set of comma seperated keys for a provided remarkname.
By default the tool will collect and report numbers for the whole remark
file provided
e.g
llvm-remarkutil remark-count --remark-name=name --keys=key1,key2 ...
Output:
key1,key2
123,321
if `collect-per-source` or `collect-per-function` are passed then the
count is broken down by source file path or function name
respectively.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D155187
Files:
llvm/docs/CommandGuide/llvm-remarkutil.rst
llvm/test/tools/llvm-remarkutil/Inputs/remark-count-with-dbg-loc.yaml
llvm/test/tools/llvm-remarkutil/Inputs/remark-count-with-incorrect-keys.yaml
llvm/test/tools/llvm-remarkutil/Inputs/remark-count.yaml
llvm/test/tools/llvm-remarkutil/broken-bitstream-remark.test
llvm/test/tools/llvm-remarkutil/broken-yaml-remark.test
llvm/test/tools/llvm-remarkutil/empty-file.test
llvm/test/tools/llvm-remarkutil/instruction-count.test
llvm/test/tools/llvm-remarkutil/no-debug-log.test
llvm/test/tools/llvm-remarkutil/remark-count-incorrect-key.test
llvm/test/tools/llvm-remarkutil/remark-count-key-not-found.test
llvm/test/tools/llvm-remarkutil/remark-count-remark-name-not-found.test
llvm/test/tools/llvm-remarkutil/remark-count-with-dbg-loc.test
llvm/test/tools/llvm-remarkutil/remark-count.test
llvm/tools/llvm-remarkutil/RemarkUtil.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155187.539967.patch
Type: text/x-patch
Size: 19889 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230713/3c7db8a3/attachment.bin>
More information about the llvm-commits
mailing list