llvm-project/lldb/source/Plugins/TraceExporter/common
Jakob Johnson f9b4ea0ce9 [trace] Add SBTraceCursor bindings
Add bindings for the `TraceCursor` to allow for programatic traversal of
traces.
This diff adds bindings for all public `TraceCursor` methods except
`GetHwClock` and also adds `SBTrace::CreateNewCursor`. A new unittest
has been added to TestTraceLoad.py that uses the new `SBTraceCursor` API
to test that the sequential and random access APIs of the `TraceCursor`
are equivalent.

This diff depends on D130925.

Test Plan:
`ninja lldb-dotest && ./bin/lldb-dotest -p TestTraceLoad`

Differential Revision: https://reviews.llvm.org/D130930
2022-08-02 16:55:33 -07:00
..
CMakeLists.txt [trace] Introduce Hierarchical Trace Representation (HTR) and add command for Intel PT trace visualization 2021-07-28 13:56:45 -07:00
TraceHTR.cpp [trace] Add SBTraceCursor bindings 2022-08-02 16:55:33 -07:00
TraceHTR.h [tests] [trace] Add a more comprehensive test for `thread trace export ctf` command 2021-08-11 20:50:10 -07:00