llvm-project/lldb/scripts/interface
Ravitheja Addepally d5d8d91c1d Initial implementation of SB APIs for Tracing support.
Summary:
This patch introduces new SB APIs for tracing support
inside LLDB. The idea is to gather trace data from
LLDB and provide it through this APIs to external
tools integrating with LLDB. These tools will be
responsible for interpreting and presenting the
trace data to their users.

The patch implements the following new SB APIs ->
-> StartTrace - starts tracing with given parameters
-> StopTrace - stops tracing.
-> GetTraceData - read the trace data .
-> GetMetaData - read the meta data assosciated with the trace.
-> GetTraceConfig - read the trace configuration

Tracing is associated with a user_id that is returned
by the StartTrace API and this id needs to be used
for accessing the trace data and also Stopping
the trace. The user_id itself may map to tracing
the complete process or just an individual thread.
The APIs require an additional thread parameter
when the user of these APIs wishes to perform
thread specific manipulations on the tracing instances.
The patch also includes the corresponding
python wrappers for the C++ based APIs.

Reviewers: k8stone, lldb-commits, clayborg

Reviewed By: clayborg

Subscribers: jingham, mgorny

Differential Revision: https://reviews.llvm.org/D29581

llvm-svn: 301389
2017-04-26 08:48:50 +00:00
..
SBAddress.i
SBAttachInfo.i SBTarget::Attach(SBAttachInfo &) was changed to not be asynchronous back in February and this affected Xcode's abililty to cancel an attach to process by name. 2015-10-05 22:58:37 +00:00
SBBlock.i Make some more of the LLDB/SWIG/Python glue Python 3 aware. 2015-10-16 17:52:32 +00:00
SBBreakpoint.i Add some more tests for breakpoint serialization. 2016-09-20 22:54:49 +00:00
SBBreakpointLocation.i
SBBroadcaster.i
SBCommandInterpreter.i
SBCommandReturnObject.i Fix FILE * leak in Python API 2016-03-25 23:40:32 +00:00
SBCommunication.i
SBCompileUnit.i Make some more of the LLDB/SWIG/Python glue Python 3 aware. 2015-10-16 17:52:32 +00:00
SBData.i Python 3 - Use six in our embedded Python glue code. 2015-11-11 17:59:57 +00:00
SBDebugger.i Add a note on how to create an empty target and use it to attach to 2016-02-01 20:05:37 +00:00
SBDeclaration.i
SBError.i Fix TestTargetAPI.py test for users who use Swig 3.0.5 or greater. 2015-10-13 17:54:15 +00:00
SBEvent.i Make some more of the LLDB/SWIG/Python glue Python 3 aware. 2015-10-16 17:52:32 +00:00
SBExecutionContext.i
SBExpressionOptions.i fixits are apparently called fix-its. 2016-06-28 01:33:03 +00:00
SBFileSpec.i This patch stops lldb from loading a .lldbinit file from the current 2016-02-19 00:05:17 +00:00
SBFileSpecList.i
SBFrame.i Teach SBFrame how to guess its language. 2017-04-12 00:19:54 +00:00
SBFunction.i Fixed TypeMemberFunctionImpl to not use clang types directly but use the new CompilerDecl class to do the job in an abstract way. 2015-11-10 17:47:04 +00:00
SBHostOS.i This patch stops lldb from loading a .lldbinit file from the current 2016-02-19 00:05:17 +00:00
SBInstruction.i [LLDB][MIPS] A small fix in GetBreakableLoadAddress() for MIPS 2016-01-27 10:16:30 +00:00
SBInstructionList.i
SBLanguageRuntime.i
SBLaunchInfo.i
SBLineEntry.i Make some more of the LLDB/SWIG/Python glue Python 3 aware. 2015-10-16 17:52:32 +00:00
SBListener.i
SBMemoryRegionInfo.i Implement GetMemoryRegions() for Linux and Mac OSX core files. 2016-07-07 08:21:28 +00:00
SBMemoryRegionInfoList.i Add .i files for SBMemoryRegionInfo and SBMemoryRegionInfoList and also hook up the new calls in SBProcess that give out SBMemoryRegionInfo and SBMemoryRegionInfoList objects. 2016-06-24 23:40:35 +00:00
SBModule.i Make some more of the LLDB/SWIG/Python glue Python 3 aware. 2015-10-16 17:52:32 +00:00
SBModuleSpec.i
SBPlatform.i Refactor Unix signals. 2015-07-14 01:09:28 +00:00
SBProcess.i Initial implementation of SB APIs for Tracing support. 2017-04-26 08:48:50 +00:00
SBQueue.i
SBQueueItem.i
SBSection.i LLDB: API for iPermission of object file's sections 2016-09-08 12:22:56 +00:00
SBSourceManager.i add stop column highlighting support 2016-09-21 20:13:14 +00:00
SBStream.i
SBStringList.i
SBStructuredData.i Initial implementation of SB APIs for Tracing support. 2017-04-26 08:48:50 +00:00
SBSymbol.i Add a GetDisplayName() API to SBFrame, SBFunction and SBSymbol 2015-07-06 18:28:46 +00:00
SBSymbolContext.i
SBSymbolContextList.i
SBTarget.i Add the ability to append breakpoints to the save file. 2016-09-22 23:42:42 +00:00
SBThread.i Add logging to SBThread::GetInfoItemByPathAsString to 2017-02-02 03:02:51 +00:00
SBThreadCollection.i
SBThreadPlan.i Add a few more needed bits to the scripted thread plans. 2016-08-05 22:06:12 +00:00
SBTrace.i Initial implementation of SB APIs for Tracing support. 2017-04-26 08:48:50 +00:00
SBTraceOptions.i Initial implementation of SB APIs for Tracing support. 2017-04-26 08:48:50 +00:00
SBType.i Add SBType::GetArrayType() such that - given a type - one can make an array (of a given size) of that type 2016-08-30 20:39:58 +00:00
SBTypeCategory.i Add calls to the SB API to access the multi-language formatter category feature 2015-10-27 01:10:35 +00:00
SBTypeEnumMember.i
SBTypeFilter.i
SBTypeFormat.i
SBTypeNameSpecifier.i
SBTypeSummary.i
SBTypeSynthetic.i
SBUnixSignals.i
SBValue.i Because of our lifetime rules w.r.t. ValueObjects and ClusterManagers, synthetic children caching is a tricky area: 2016-07-06 21:24:28 +00:00
SBValueList.i Make some more of the LLDB/SWIG/Python glue Python 3 aware. 2015-10-16 17:52:32 +00:00
SBVariablesOptions.i
SBWatchpoint.i