[Lldb-commits] [PATCH] D152364: [lldb] Rate limit progress reports -- different approach [WIP-ish]
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 7 04:43:30 PDT 2023
labath created this revision.
labath added reviewers: JDevlieghere, saugustine, rupprecht.
Herald added a project: All.
labath requested review of this revision.
Herald added a project: LLDB.
Have the Progress class spawn a thread to periodically send progress
reports.
The reporting period could be made configurable, but for now I've
hardcoded it to 100ms. (This is the main WIP part)
It could be argued that creating a thread for progress reporting adds
overhead, but I would counter that by saying "If the task is so fast
that creating a thread noticably slows it down, then it really doesn't
need progress reporting".
For me, this speeds up DWARF indexing by about 1.5% (which is only
slightly above the error bars), but I expect it will have a much bigger
impact in situations where printing a single progress update takes a
nontrivial amount of time.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152364
Files:
lldb/include/lldb/Core/Progress.h
lldb/source/Core/Progress.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152364.529255.patch
Type: text/x-patch
Size: 5365 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230607/a9d650bb/attachment.bin>
More information about the lldb-commits
mailing list