diff options
author | Tamas Berghammer <tberghammer@google.com> | 2017-01-03 16:29:43 +0000 |
---|---|---|
committer | Tamas Berghammer <tberghammer@google.com> | 2017-01-03 16:29:43 +0000 |
commit | a6f5795ae2b57671c2cc44a93779e4a61d071644 (patch) | |
tree | d2a8177417cd225091d06a921480b610d6e51e6c /llvm/lib/CodeGen/StackProtector.cpp | |
parent | 563de799e3c5573da5eed7427a29d8cc05019eda (diff) | |
download | bcm5719-llvm-a6f5795ae2b57671c2cc44a93779e4a61d071644.tar.gz bcm5719-llvm-a6f5795ae2b57671c2cc44a93779e4a61d071644.zip |
Improve the performance of jModulesInfo in lldb-server
Previously it parsed /proc/<pid>/maps for every module separately
resulting in a very slow response time. This CL add some caching and
optimizes the implementation to improve the code from O(n*m) to O(n+m)
where n is the number of modules requested and m is the number of
files mapped into memory.
Differential revision: https://reviews.llvm.org/D28233
llvm-svn: 290895
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions