Skip to content
  1. Oct 27, 2011
  2. Oct 26, 2011
    • Johnny Chen's avatar
      Add another metric for startup delay -- run to breakpoint, which measures the time from issuing · 6e5b330f
      Johnny Chen authored
      the run command till the first breakpoint hit.  Example:
      
       $ ./dotest.py -v +b -n -x '-F Driver::MainLoop()' -p TestStartupDelays.py
      1: test_startup_delay (TestStartupDelays.StartupDelaysBench)
         Test start up delays creating a target and setting a breakpoint. ... 
      lldb startup delay (create fresh target) benchmark: Avg: 0.124496 (Laps: 30, Total Elapsed Time: 3.734883)
      lldb startup delay (set first breakpoint) benchmark: Avg: 0.220828 (Laps: 30, Total Elapsed Time: 6.624847)
      lldb startup delay (run to breakpoint) benchmark: Avg: 0.478159 (Laps: 30, Total Elapsed Time: 14.344774)
      ok
      
      llvm-svn: 142993
      6e5b330f
  3. Oct 25, 2011
  4. Oct 24, 2011
  5. Oct 22, 2011
    • Johnny Chen's avatar
      Add bench.py as a driver script to run some benchmarks on lldb. · b8da4262
      Johnny Chen authored
      Add benchmarks for expression evaluations (TestExpressionCmd.py) and disassembly (TestDoAttachThenDisassembly.py).
      
      An example:
      [17:45:55] johnny:/Volumes/data/lldb/svn/trunk/test $ ./bench.py 2>&1 | grep -P '^lldb.*benchmark:'
      lldb startup delay (create fresh target) benchmark: Avg: 0.104274 (Laps: 30, Total Elapsed Time: 3.128214)
      lldb startup delay (set first breakpoint) benchmark: Avg: 0.102216 (Laps: 30, Total Elapsed Time: 3.066470)
      lldb frame variable benchmark: Avg: 1.649162 (Laps: 20, Total Elapsed Time: 32.983245)
      lldb stepping benchmark: Avg: 0.104409 (Laps: 50, Total Elapsed Time: 5.220461)
      lldb expr cmd benchmark: Avg: 0.206774 (Laps: 25, Total Elapsed Time: 5.169350)
      lldb disassembly benchmark: Avg: 0.089086 (Laps: 10, Total Elapsed Time: 0.890859)
      
      llvm-svn: 142708
      b8da4262
  6. Oct 21, 2011
  7. Oct 20, 2011
    • Johnny Chen's avatar
      Directory renaming: example -> expression. · 8241d378
      Johnny Chen authored
      llvm-svn: 142602
      8241d378
    • Johnny Chen's avatar
      Directory renaming: example -> expression. · f4ca4b5f
      Johnny Chen authored
      llvm-svn: 142601
      f4ca4b5f
    • Johnny Chen's avatar
      Parameterize the iteration count used when running benchmarks, instead of... · 38f9daa3
      Johnny Chen authored
      Parameterize the iteration count used when running benchmarks, instead of hard-coded inside the test case.
      Add a '-y count' option to the test driver for this purpose.  An example:
      
       $  ./dotest.py -v -y 25 +b -p TestDisassembly.py
      
      ...
      
      ----------------------------------------------------------------------
      Collected 2 tests
      
      1: test_run_gdb_then_lldb (TestDisassembly.DisassembleDriverMainLoop)
         Test disassembly on a large function with lldb vs. gdb. ... 
      gdb benchmark: Avg: 0.226305 (Laps: 25, Total Elapsed Time: 5.657614)
      lldb benchmark: Avg: 0.113864 (Laps: 25, Total Elapsed Time: 2.846606)
      lldb_avg/gdb_avg: 0.503146
      ok
      2: test_run_lldb_then_gdb (TestDisassembly.DisassembleDriverMainLoop)
         Test disassembly on a large function with lldb vs. gdb. ... 
      lldb benchmark: Avg: 0.113008 (Laps: 25, Total Elapsed Time: 2.825201)
      gdb benchmark: Avg: 0.225240 (Laps: 25, Total Elapsed Time: 5.631001)
      lldb_avg/gdb_avg: 0.501723
      ok
      
      ----------------------------------------------------------------------
      Ran 2 tests in 41.346s
      
      OK
      
      llvm-svn: 142598
      38f9daa3
    • Johnny Chen's avatar
      Remove stale code. · 5a328cc8
      Johnny Chen authored
      llvm-svn: 142595
      5a328cc8
    • Johnny Chen's avatar
      Remove stale code. · 29b3f6b6
      Johnny Chen authored
      llvm-svn: 142594
      29b3f6b6
    • Johnny Chen's avatar
      Up until now, we have been using pexpect to spawn an lldb process and use lldb commands to · 2a6eab04
      Johnny Chen authored
      bring the debugger to the desired state.
      
      This patch makes BenchBase inherit from TestBase, instead of Base (which is a parent class of
      TestBase).  This is so that we can also enjoy the Pythonic way of bringing the lldb debugger
      to a desired state before running the benchmark and collect statistics.
      
      llvm-svn: 142562
      2a6eab04
    • Johnny Chen's avatar
      Missed this file when doing r142543 to temporarily relax the expected... · c54de2ca
      Johnny Chen authored
      Missed this file when doing r142543 to temporarily relax the expected substrings for watchpoint creation output.
      
      llvm-svn: 142549
      c54de2ca
  8. Oct 19, 2011
  9. Oct 18, 2011
  10. Oct 17, 2011
    • Enrico Granata's avatar
      this patch introduces a new command script import command which takes as input... · a9dbf432
      Enrico Granata authored
      this patch introduces a new command script import command which takes as input a filename for a Python script and imports the module contained in that file. the containing directory is added to the Python path such that dependencies are honored. also, the module may contain an __lldb_init_module(debugger,dict) function, which gets called after importing, and which can somehow initialize the module's interaction with lldb
      
      llvm-svn: 142283
      a9dbf432
    • Johnny Chen's avatar
      Rename test file. · 9c7b04cb
      Johnny Chen authored
      llvm-svn: 142242
      9c7b04cb
    • Johnny Chen's avatar
      Fix wrong docstring. · 8289e365
      Johnny Chen authored
      llvm-svn: 142241
      8289e365
    • Johnny Chen's avatar
      Add a commnad to set a condition for a watchpoint. Example: · 16dcf718
      Johnny Chen authored
          watchpoint modify -c 'global==5'
      
      modifies the last created watchpoint so that the condition expression
      is evaluated at the stop point to decide whether we should proceed with
      the stopping.
      
      Also add SBWatchpont::SetCondition(const char *condition) to set condition
      programmatically.
      
      Test cases to come later.
      
      llvm-svn: 142227
      16dcf718
  11. Oct 14, 2011
Loading