[Lldb-commits] [PATCH] D102833: [debugserver]Add platform cache support to improve performance.Under BigSur 11.3 this function causes a performance loss of 0.68s per execution.

2021-05-20 Thread kuperxu via Phabricator via lldb-commits
kuperxu added a comment. I don't have permission to commit, please land this code. Thank you @JDevlieghere Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D102833/new/ https://reviews.llvm.org/D102833 ___ l

[Lldb-commits] [PATCH] D102833: [debugserver]Add platform cache support to improve performance.Under BigSur 11.3 this function causes a performance loss of 0.68s per execution.

2021-05-20 Thread kuperxu via Phabricator via lldb-commits
kuperxu added a comment. Currently the main time consuming performance is when loading the executable. In the MachProcess::GetMachOInformationFromMemory function if the executable has 100 load_command, then the function _dyld_process_info_create will be executed 100 times Repository: rG LLV

[Lldb-commits] [PATCH] D102833: [debugserver]Add platform cache support to improve performance.Under BigSur 11.3 this function causes a performance loss of 0.68s per execution.

2021-05-20 Thread kuperxu via Phabricator via lldb-commits
kuperxu added a reviewer: aprantl. kuperxu added a comment. The main reason for the problem is that dyld has modified the _dyld_process_info_create function implementation, which has increased the function's time consumption significantly and caused a huge delay in attaching the program. Repo

[Lldb-commits] [PATCH] D102833: [debugserver]Add platform cache support to improve performance.Under BigSur 11.3 this function causes a performance loss of 0.68s per execution.

2021-05-20 Thread kuperxu via Phabricator via lldb-commits
kuperxu updated this revision to Diff 346671. kuperxu added a comment. [debugserver]Recalculate the platform cache each time the port is cleared. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D102833/new/ https://reviews.llvm.org/D102833 Files: l

[Lldb-commits] [PATCH] D102833: [debugserver]Add platform cache support to improve performance.Under BigSur 11.3 this function causes a performance loss of 0.68s per execution.

2021-05-20 Thread kuperxu via Phabricator via lldb-commits
kuperxu created this revision. kuperxu requested review of this revision. Herald added a project: LLDB. Herald added a subscriber: lldb-commits. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D102833 Files: lldb/tools/debugserver/source/MacOSX/MachProcess.h lldb/tools/debugse