~ubuntu-branches/ubuntu/saucy/libv8/saucy

« back to all changes in this revision

Viewing changes to src/cpu-profiler.cc

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2012-04-07 16:26:13 UTC
  • mfrom: (15.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20120407162613-dqo1m6w9r3fh8tst
Tags: 3.8.9.16-3
* mipsel build fixes :
  + v8_use_mips_abi_hardfloat=false, this lowers EABI requirements.
  + v8_can_use_fpu_instructions=false, detect if FPU is present.
  + set -Wno-unused-but-set-variable only on mipsel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
namespace v8 {
40
40
namespace internal {
41
41
 
42
 
static const int kEventsBufferSize = 256*KB;
43
 
static const int kTickSamplesBufferChunkSize = 64*KB;
 
42
static const int kEventsBufferSize = 256 * KB;
 
43
static const int kTickSamplesBufferChunkSize = 64 * KB;
44
44
static const int kTickSamplesBufferChunksCount = 16;
 
45
static const int kProfilerStackSize = 32 * KB;
45
46
 
46
47
 
47
48
ProfilerEventsProcessor::ProfilerEventsProcessor(ProfileGenerator* generator)
48
 
    : Thread("v8:ProfEvntProc"),
 
49
    : Thread(Thread::Options("v8:ProfEvntProc", kProfilerStackSize)),
49
50
      generator_(generator),
50
51
      running_(true),
51
52
      ticks_buffer_(sizeof(TickSampleEventRecord),
493
494
    NoBarrier_Store(&is_profiling_, true);
494
495
    processor_->Start();
495
496
    // Enumerate stuff we already have in the heap.
496
 
    if (isolate->heap()->HasBeenSetup()) {
 
497
    if (isolate->heap()->HasBeenSetUp()) {
497
498
      if (!FLAG_prof_browser_mode) {
498
499
        bool saved_log_code_flag = FLAG_log_code;
499
500
        FLAG_log_code = true;
562
563
}
563
564
 
564
565
 
565
 
void CpuProfiler::Setup() {
 
566
void CpuProfiler::SetUp() {
566
567
  Isolate* isolate = Isolate::Current();
567
568
  if (isolate->cpu_profiler() == NULL) {
568
569
    isolate->set_cpu_profiler(new CpuProfiler());