[PATCH] D139603: [llvm-profdata] Add option to cap profile output size
William Junda Huang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 7 20:23:47 PST 2022
huangjd created this revision.
huangjd added a reviewer: davidxl.
Herald added subscribers: wenlei, hiraditya.
Herald added a project: All.
huangjd requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Allow user to specify `--output-size-limit=n` to cap the size of generated profile to be strictly under n. Functions with the lowest total sample count are dropped first if necessary. Due to using a heuristic, excessive functions may be dropped to satisfy the size requirement
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D139603
Files:
llvm/include/llvm/ProfileData/SampleProfWriter.h
llvm/lib/ProfileData/SampleProfWriter.cpp
llvm/tools/llvm-profdata/llvm-profdata.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139603.481146.patch
Type: text/x-patch
Size: 9687 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221208/4ab0b53d/attachment.bin>
More information about the llvm-commits
mailing list