This is an archive of the discontinued LLVM Phabricator instance.

Temporarily disable libc++ std::function formatter due to performance issue
ClosedPublic

Authored by shafik on Aug 2 2019, 10:55 AM.

Details

Summary

We have been seeing increased reports of performance issue around large project and formatting std::function variables especially in functions signatures in back traces. There are some possible fixes but exploring those fixes may take time and it is better to temporarily disable the formatter due to its impact and re-enable it once we have a fix.

Diff Detail

Repository
rL LLVM

Event Timeline

shafik created this revision.Aug 2 2019, 10:55 AM
aprantl accepted this revision.Aug 2 2019, 10:57 AM
aprantl added inline comments.
packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/function/TestLibCxxFunction.py
26 ↗(On Diff #213080)

I didn't know that worked! Please also add a comment that explains *why* this test is skipped.

This revision is now accepted and ready to land.Aug 2 2019, 10:57 AM
shafik updated this revision to Diff 213090.Aug 2 2019, 11:01 AM

Adding as suggested.

shafik marked an inline comment as done.Aug 2 2019, 11:01 AM

@aprantl I did not know either until I looked at decorators.py and it says:

# @skipIf, skip for all platform/compiler/arch,

Please also add a comment to formatters::LibcxxFunctionSummaryProvider saying that it's currently not being registered.

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2019, 11:15 AM