diff options
| author | Walter Erquinigo <wallace@fb.com> | 2022-04-07 20:57:01 -0700 |
|---|---|---|
| committer | Walter Erquinigo <wallace@fb.com> | 2022-04-12 13:08:03 -0700 |
| commit | 44103c96fa6b00e7824319de1b10ce26781e3852 (patch) | |
| tree | e1e005308e7ab8449da0c9ee968dd8d59ac81311 /lldb/test/API/python_api/debugger/TestDebuggerAPI.py | |
| parent | bdf3e7e5b886ab690a82e8d34b4502d9c6c5d6a9 (diff) | |
[trace][intelpt] Remove code smell when printing the raw trace size
Something ugly I did was to report the trace buffer size to the DecodedThread,
which is later used as part of the `dump info` command. Instead of doing that,
we can just directly ask the trace for the raw buffer and print its size.
I thought about not asking for the entire trace but instead just for its size,
but in this case, as our traces as not extremely big, I prefer to ask for the
entire trace, ensuring it could be fetched, and then print its size.
Differential Revision: https://reviews.llvm.org/D123358
Diffstat (limited to 'lldb/test/API/python_api/debugger/TestDebuggerAPI.py')
0 files changed, 0 insertions, 0 deletions
