Skip to content
  1. Apr 11, 2013
    • Enrico Granata's avatar
      Updated the line on which to break for the formatters test · c1c31b2c
      Enrico Granata authored
      Moving over to source-regex might be a good idea, but it’s not what we really want to test. Ideally, we would set a regex breakpoint to find the right line, then delete it and set one by file and line with the right line info from before.
      
      llvm-svn: 179246
      c1c31b2c
  2. Apr 01, 2013
    • Enrico Granata's avatar
      Integrating option parsing in TestCase for added convenience · 8fab9fda
      Enrico Granata authored
      To hook it up to individual test cases:
      - define GetLongOptions() in your test case class to return something other than NULL (hopefully an array of options :-)
      - implement ParseOption() to check for the short option char and do the right thing - return true at the end if you want more options to come your way or false if you don’t
      - make sure that your Setup() call takes int& and char**& so that optind post-processing can happen - and call TestCase::Setup from your setup
      
      llvm-svn: 178482
      8fab9fda
  3. Mar 22, 2013
    • Greg Clayton's avatar
      Much more cleanup on the performance testing infrastructure: · 880afc57
      Greg Clayton authored
      - Added new abtract Results class to keep CoreFoundation out of the tests. There are many subclasses for different settings:
          Results::Result::Dictionary
          Results::Result::Array
          Results::Result::Unsigned
          Results::Result::Double
          Results::Result::String
      - Gauge<T> can now write themselves out via a templatized write to results function:
          template <class T>
          Results::ResultSP GetResult (const char *description, T value);
        
      - There are four specializations of this so far:
          template <>
          Results::ResultSP GetResult (const char *description, double value);
      
          template <>
          Results::ResultSP GetResult (const char *description, uint64_t value);
      
          template <>
          Results::ResultSP GetResult (const char *description, std::string value);
      
          template <>
          Results::ResultSP GetResult (const char *description, MemoryStats value);
      - Don't emit the virtual memory reading from the task info call as it really doesn't mean much as it includes way too much (shared cache + other stuff we don't have control over)
      - Fixed other test cases to build correctly and use the new classes
      
      llvm-svn: 177696
      880afc57
  4. Mar 21, 2013
  5. Mar 20, 2013
  6. Mar 19, 2013
    • Greg Clayton's avatar
      More cleanup on the lldb-perf code: · e0b924e3
      Greg Clayton authored
      - TestCase.m_thread is now filled in with the first thread that has a valid
        stop reason. This eliminates the need for the SelectMyThread() functions.
      - The first thread that stops for a reason is also set as the selected thread
        in the process in case any command line commands are run.
      - Changed launch over to take a SBLaunchInfo parameter so that the launch
        function doesn't keep getting new arguments as they are needed.
      - TestCase::Setup() and TestCase::Launch(SBLaunchInfo) now return bool to 
        indicate success of setup and launch.
      - ActionWanted::Next(SBThread) was renamed to ActionWanted::StepOver(SBThread)
      - ActionWanted::Finish(SBThread) was renamed to ActionWanted::StepOut(SBThread)
      
      llvm-svn: 177376
      e0b924e3
  7. Mar 18, 2013
    • Greg Clayton's avatar
      Code cleanup: · 7b8f7382
      Greg Clayton authored
      - don't use preprocessor macros
      - use switch statements
      - don't put anything in the lldb namespace, use "lldb_perf" namespace.
      - Pass the action struct into each TestStep() for each step fill in
      - Modify the ActionWanted class to have accessors to make the continue, next, finish, kill instead of using preproc macros
      
      llvm-svn: 177332
      7b8f7382
  8. Mar 14, 2013
    • Enrico Granata's avatar
      <rdar://problem/13228487> · 86910577
      Enrico Granata authored
      A test case for the performance of some LLDB formatters
      Changes and improvements to the testing infrastructure itself
      
      llvm-svn: 177100
      86910577
Loading