[Lldb-commits] [PATCH] D101128: [lldb-vscode] only report long running progress events

walter erquinigo via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 22 20:04:23 PDT 2021


wallace created this revision.
wallace requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101128

Files:
  lldb/tools/lldb-vscode/ProgressEvent.cpp
  lldb/tools/lldb-vscode/ProgressEvent.h
  lldb/tools/lldb-vscode/VSCode.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101128.339852.patch
Type: text/x-patch
Size: 10472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210423/dd6cc36f/attachment.bin>


More information about the lldb-commits mailing list