aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/FileUtilities.cpp
diff options
context:
space:
mode:
authorHongtao Yu <hoy@fb.com>2022-01-25 16:11:41 -0800
committerHongtao Yu <hoy@fb.com>2022-01-25 21:36:38 -0800
commitcc4beda039ba5441b76b5b112dd5f69553965186 (patch)
treec089d8e7e52b35f1d5168712d78a8637f3e9f833 /llvm/lib/Support/FileUtilities.cpp
parentad0345aed1e76f98c6ad55372b675c5647e16d28 (diff)
downloadllvm-cc4beda039ba5441b76b5b112dd5f69553965186.zip
llvm-cc4beda039ba5441b76b5b112dd5f69553965186.tar.gz
llvm-cc4beda039ba5441b76b5b112dd5f69553965186.tar.bz2
[CSSPGO] Adjust SampleContextFrameVector to be a shorter SmallVector
It appears that some memory saving can be archived by tweaking the existing `SampleContextFrameVector` setup. Below are memory usage for two benchmarks before and after this change. 1. Medium benchmark: - Before: ``` note: After computeSizeForProfiledFunctions note: VM: 12.50 GB RSS: 11.02 GB note: After generateProbeBasedProfile note: **VM: 30.56 GB RSS: 29.08 GB** note: After postProcessProfiles note: VM: 31.91 GB RSS: 30.43 GB ``` - After: ``` note: After computeSizeForProfiledFunctions note: VM: 12.26 GB RSS: 10.80 GB note: After generateProbeBasedProfile note: **VM: 28.76 GB RSS: 27.29 GB** note: After postProcessProfiles note: VM: 30.12 GB RSS: 28.66 GB ``` 2. Large benchmark: - Before: ``` note: After computeSizeForProfiledFunctions note: VM: 106.28 GB RSS: 91.25 GB note: After generateProbeBasedProfile note: **VM: 245.19 GB RSS: 224.30 GB** note: After postProcessProfiles note: VM: 254.96 GB RSS: 221.58 GB ``` - After: ``` note: After computeSizeForProfiledFunctions note: VM: 105.95 GB RSS: 91.04 GB note: After generateProbeBasedProfile note: VM: **234.29 GB RSS: 215.39 GB** note: After postProcessProfiles note: VM: 244.03 GB RSS: 213.45 GB ``` Reviewed By: wenlei Differential Revision: https://reviews.llvm.org/D118203
Diffstat (limited to 'llvm/lib/Support/FileUtilities.cpp')
0 files changed, 0 insertions, 0 deletions