summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp
diff options
context:
space:
mode:
authorLei Wang <wlei@fb.com>2025-03-04 11:39:59 -0800
committerGitHub <noreply@github.com>2025-03-04 11:39:59 -0800
commitd38380d3d808183652c1e9be34e3a2476ed6ea70 (patch)
tree4616e9147fdbafd9f3c74f8a1b289c1a191974d1 /lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp
parentee4bc5a8ca94e915a40daddd79237bf3b7520bf9 (diff)
[CSSPGO] Fix redundant reading of profile metadata (#129609)
Fix a build speed regression due to repeated reading of profile metadata. Before the function `readFuncMetadata(ProfileHasAttribute, Profiles)` reads the metadata for all the functions(`Profiles`), however, it's actually used for on-demand loading, it can be called for multiple times, which leads to redundant reading that causes the build speed regression. Now fix it to read the metadata only for the new loaded functions(functions in the `FuncsToUse`).
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp')
0 files changed, 0 insertions, 0 deletions