• loislo@chromium.org's avatar
    CPUProfiler: Improve line numbers support in profiler. · 5571dc42
    loislo@chromium.org authored
    1) report line number even if a script has no resource_name (evals);
      a) do that for already compiled functions in log.cc;
      b) do that for fresh evals in compiler.cc;
    
    2) Implement the test for LineNumbers and make it fast and stable, otherwise we have to wait for tick samples;
      a) move processor_->Join() call into new Processor::StopSynchronously method;
      b) Process all the CodeEvents even if we are stopping Processor thread;
      c) make getters for generator and processor;
    
    3) Fix the test for Jit that didn't expect line numbers;
    
    4) Minor refactoring:
      a) in ProcessTicks;
      b) rename enqueue_order_ to last_code_event_id_ for better readability;
      c) rename dequeue_order_ to last_processed_code_event_id_ and make it a member for better readability;
    
    BUG=
    TEST=test-profile-generator/LineNumber
    R=jkummerow@chromium.org, yurys@chromium.org
    
    Review URL: https://codereview.chromium.org/18058008
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15530 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    5571dc42
log.cc 52.9 KB