v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <cpu-profiler.h>
Definition at line 205 of file cpu-profiler.h.
|
explicit |
Definition at line 388 of file cpu-profiler.cc.
CpuProfiler | ( | Isolate * | isolate, |
CpuProfilesCollection * | test_collection, | ||
ProfileGenerator * | test_generator, | ||
ProfilerEventsProcessor * | test_processor | ||
) |
Definition at line 399 of file cpu-profiler.cc.
|
virtual |
Definition at line 413 of file cpu-profiler.cc.
References ASSERT.
Implements CodeEventListener.
Definition at line 206 of file cpu-profiler.cc.
References ProfilerEventsProcessor::Enqueue(), CodeCreateEventRecord::entry, CpuProfilesCollection::GetName(), CpuProfilesCollection::NewCodeEntry(), v8::internal::NULL, CodeCreateEventRecord::shared, CodeCreateEventRecord::size, and CodeCreateEventRecord::start.
|
virtual |
Implements CodeEventListener.
Definition at line 220 of file cpu-profiler.cc.
References HeapObject::address(), ProfilerEventsProcessor::Enqueue(), CodeCreateEventRecord::entry, Code::ExecutableSize(), CpuProfilesCollection::GetFunctionName(), CpuProfilesCollection::NewCodeEntry(), v8::internal::NULL, CodeCreateEventRecord::shared, CodeCreateEventRecord::size, and CodeCreateEventRecord::start.
|
virtual |
Implements CodeEventListener.
Definition at line 234 of file cpu-profiler.cc.
References HeapObject::address(), ProfilerEventsProcessor::Enqueue(), CodeCreateEventRecord::entry, Code::ExecutableSize(), CpuProfilesCollection::GetFunctionName(), CpuProfilesCollection::NewCodeEntry(), v8::internal::NULL, CodeCreateEventRecord::shared, CodeCreateEventRecord::size, and CodeCreateEventRecord::start.
|
virtual |
Implements CodeEventListener.
Definition at line 248 of file cpu-profiler.cc.
References HeapObject::address(), ASSERT, Script::cast(), SharedFunctionInfo::DisableOptimizationReason(), ProfilerEventsProcessor::Enqueue(), CodeCreateEventRecord::entry, Code::ExecutableSize(), v8::internal::GetBailoutReason(), CpuProfilesCollection::GetFunctionName(), CpuProfilesCollection::NewCodeEntry(), CompilationInfo::ReleaseNoFrameRanges(), CodeEntry::set_bailout_reason(), CodeEntry::set_no_frame_ranges(), CodeEntry::set_script_id(), CodeCreateEventRecord::shared, CodeCreateEventRecord::size, and CodeCreateEventRecord::start.
|
virtual |
Implements CodeEventListener.
Definition at line 274 of file cpu-profiler.cc.
References HeapObject::address(), ASSERT, Script::cast(), SharedFunctionInfo::DebugName(), SharedFunctionInfo::DisableOptimizationReason(), ProfilerEventsProcessor::Enqueue(), CodeCreateEventRecord::entry, Code::ExecutableSize(), v8::internal::GetBailoutReason(), CpuProfilesCollection::GetFunctionName(), CpuProfilesCollection::GetName(), CodeEntry::kEmptyNamePrefix, CpuProfilesCollection::NewCodeEntry(), CompilationInfo::ReleaseNoFrameRanges(), CodeEntry::set_bailout_reason(), CodeEntry::set_no_frame_ranges(), CodeEntry::set_script_id(), CodeCreateEventRecord::shared, CodeCreateEventRecord::size, and CodeCreateEventRecord::start.
|
virtual |
Implements CodeEventListener.
Definition at line 304 of file cpu-profiler.cc.
References HeapObject::address(), ProfilerEventsProcessor::Enqueue(), CodeCreateEventRecord::entry, Code::ExecutableSize(), CpuProfilesCollection::GetName(), CpuProfilesCollection::NewCodeEntry(), v8::internal::NULL, CodeCreateEventRecord::shared, CodeCreateEventRecord::size, and CodeCreateEventRecord::start.
|
virtual |
Implements CodeEventListener.
Definition at line 330 of file cpu-profiler.cc.
Implements CodeEventListener.
Definition at line 321 of file cpu-profiler.cc.
References ProfilerEventsProcessor::Enqueue(), CodeMoveEventRecord::from, and CodeMoveEventRecord::to.
|
inlinevirtual |
Implements CodeEventListener.
Definition at line 249 of file cpu-profiler.h.
void DeleteAllProfiles | ( | ) |
Definition at line 180 of file cpu-profiler.cc.
void DeleteProfile | ( | CpuProfile * | profile | ) |
Definition at line 186 of file cpu-profiler.cc.
References CpuProfilesCollection::profiles(), and CpuProfilesCollection::RemoveProfile().
Referenced by CpuProfile::Delete().
|
inline |
Definition at line 76 of file cpu-profiler-inl.h.
References ProfilerEventsProcessor::FinishTickSample().
Referenced by Sampler::SampleStack().
|
inline |
Definition at line 262 of file cpu-profiler.h.
Referenced by GetFunctionLineNumber().
CpuProfile * GetProfile | ( | int | index | ) |
Definition at line 175 of file cpu-profiler.cc.
References CpuProfilesCollection::profiles().
int GetProfilesCount | ( | ) |
Definition at line 169 of file cpu-profiler.cc.
References CpuProfilesCollection::profiles().
Referenced by TEST().
Implements CodeEventListener.
Definition at line 344 of file cpu-profiler.cc.
References ProfilerEventsProcessor::Enqueue(), CodeCreateEventRecord::entry, CpuProfilesCollection::GetName(), CpuProfilesCollection::NewCodeEntry(), v8::internal::NULL, CodeCreateEventRecord::shared, CodeCreateEventRecord::size, and CodeCreateEventRecord::start.
|
inline |
Definition at line 257 of file cpu-profiler.h.
|
inline |
Definition at line 258 of file cpu-profiler.h.
|
inline |
Definition at line 264 of file cpu-profiler.h.
|
inline |
Definition at line 263 of file cpu-profiler.h.
Referenced by TEST().
Implements CodeEventListener.
Definition at line 359 of file cpu-profiler.cc.
References HeapObject::address(), ProfilerEventsProcessor::Enqueue(), CodeCreateEventRecord::entry, Code::ExecutableSize(), CpuProfilesCollection::GetName(), CpuProfilesCollection::NewCodeEntry(), CodeCreateEventRecord::size, and CodeCreateEventRecord::start.
void set_sampling_interval | ( | TimeDelta | value | ) |
Definition at line 419 of file cpu-profiler.cc.
References ASSERT.
Implements CodeEventListener.
Definition at line 373 of file cpu-profiler.cc.
References ProfilerEventsProcessor::Enqueue(), CodeCreateEventRecord::entry, CpuProfilesCollection::GetName(), CpuProfilesCollection::NewCodeEntry(), v8::internal::NULL, CodeCreateEventRecord::shared, CodeCreateEventRecord::size, and CodeCreateEventRecord::start.
Implements CodeEventListener.
Definition at line 334 of file cpu-profiler.cc.
References ProfilerEventsProcessor::Enqueue(), SharedFunctionInfoMoveEventRecord::from, and SharedFunctionInfoMoveEventRecord::to.
void StartProfiling | ( | const char * | title, |
bool | record_samples = false |
||
) |
Definition at line 431 of file cpu-profiler.cc.
References ProfilerEventsProcessor::AddCurrentStack(), and CpuProfilesCollection::StartProfiling().
Referenced by CpuProfiler::StartProfiling(), and TEST().
void StartProfiling | ( | String * | title, |
bool | record_samples | ||
) |
Definition at line 439 of file cpu-profiler.cc.
References CpuProfilesCollection::GetName(), and CpuProfiler::StartProfiling().
|
inline |
Definition at line 70 of file cpu-profiler-inl.h.
References v8::internal::NULL, and ProfilerEventsProcessor::StartTickSample().
Referenced by Sampler::SampleStack().
CpuProfile * StopProfiling | ( | const char * | title | ) |
Definition at line 471 of file cpu-profiler.cc.
References v8::internal::NULL, CpuProfile::Print(), and CpuProfilesCollection::StopProfiling().
CpuProfile * StopProfiling | ( | String * | title | ) |
Definition at line 482 of file cpu-profiler.cc.
References CpuProfilesCollection::GetName(), v8::internal::NULL, and CpuProfilesCollection::StopProfiling().