History log of /external/lldb/examples/python/process_events.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bdde84a29eac971f5831184bd893d380e5c4877e 27-Jun-2013 Greg Clayton <gclayton@apple.com> A bit more cleanup on the process_events.py to use best practices for event handling.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@185089 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/examples/python/process_events.py
eb3cd92b6ccc11ef78e8550e539db0fc00cccae3 27-Jun-2013 Greg Clayton <gclayton@apple.com> Fixed the process_events.py example to be able to specify the platform and also use the debugger's listener.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@185027 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/examples/python/process_events.py
f5af85a2946ed4e1ff4766829d328cfb4961f259 08-Mar-2013 Enrico Granata <egranata@apple.com> Initial checkin of a new project: LLDB Performance Testing Infrastructure

This is a very basic implementation of a library that easily allows to drive LLDB.framework to write test cases for performance

This is separate from the LLDB testsuite in test/ in that:
a) this uses C++ instead of Python to avoid measures being affected by SWIG
b) this is in very early development and needs lots of tweaking before it can be considered functionally complete
c) this is not meant to test correctness but to help catch performance regressions

There is a sample application built against the library (in darwin/sketch) that uses the famous sample app Sketch as an inferior to measure certain basic parameters of LLDB's behavior.
The resulting output is a PLIST much like the following:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>fetch-frames</key>
<real>0.13161715522222225</real>
</dict>
<dict>
<key>file-line-bkpt</key>
<real>0.029111678750000002</real>
</dict>
<dict>
<key>fetch-modules</key>
<real>0.00026376766666666668</real>
</dict>
<dict>
<key>fetch-vars</key>
<real>0.17820429311111111</real>
</dict>
<dict>
<key>run-expr</key>
<real>0.029676525769230768</real>
</dict>
</array>
</plist>

Areas for improvement:
- code cleanups (I will be out of the office for a couple days this coming week, but please keep ideas coming!)
- more metrics and test cases
- better error checking

This toolkit also comprises a simple event-loop-driven controller for LLDB, similar yet much simpler to what the Driver does to implement the lldb command-line tool.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@176715 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/examples/python/process_events.py
d0d4902af0278498ee3c21c671d445256b035f5d 25-Sep-2012 Greg Clayton <gclayton@apple.com> Added process attach options and also use the SBLaunchInfo and SBAttachInfo.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@164619 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/examples/python/process_events.py
565add09831504997f8e4297ec44a479e321fcec 31-Aug-2012 Greg Clayton <gclayton@apple.com> Added command lists that can be executed on launch, stop, crash and exit. Added code to auto import the lldb module that we can use on many stand alone modules.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@162972 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/examples/python/process_events.py
9aec43d66eedd94a2cb5513743f48bfaf3626684 31-Aug-2012 Greg Clayton <gclayton@apple.com> Added an example that show correct usage of the async process event API.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@162967 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/examples/python/process_events.py