diff options
author | Walter Erquinigo <a20012251@gmail.com> | 2021-04-29 21:27:12 -0700 |
---|---|---|
committer | Walter Erquinigo <wallace@fb.com> | 2021-06-17 12:01:27 -0700 |
commit | aa4685c0fb3aab5acb90be5fd3eb5ba8bf1e3211 (patch) | |
tree | 0f229eafcfbc657d970a397965ca9325989d4800 /llvm/lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp | |
parent | f7c54c4603a2df8c0833f5ddc04a5e109bca1c14 (diff) | |
download | llvm-aa4685c0fb3aab5acb90be5fd3eb5ba8bf1e3211.zip llvm-aa4685c0fb3aab5acb90be5fd3eb5ba8bf1e3211.tar.gz llvm-aa4685c0fb3aab5acb90be5fd3eb5ba8bf1e3211.tar.bz2 |
[lldb-vscode] only report long running progress events
When the number of shared libs is massive, there could be hundreds of
thousands of short lived progress events sent to the IDE, which makes it
irresponsive while it's processing all this data. As these small jobs
take less than a second to process, the user doesn't even see them,
because the IDE only display the progress of long operations. So it's
better not to send these events.
I'm fixing that by sending only the events that are taking longer than 5
seconds to process.
In a specific run, I got the number of events from ~500k to 100, because
there was only 1 big lib to parse.
I've tried this on several small and massive targets, and it seems to
work fine.
Differential Revision: https://reviews.llvm.org/D101128
Diffstat (limited to 'llvm/lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions