V8 Project
|
Public Member Functions | |
Profiler (Isolate *isolate) | |
void | Engage () |
void | Disengage () |
void | Insert (TickSample *sample) |
virtual void | Run () |
void | pause () |
void | resume () |
![]() | |
Thread (const Options &options) | |
virtual | ~Thread () |
void | Start () |
void | StartSynchronously () |
void | Join () |
const char * | name () const |
PlatformData * | data () |
void | NotifyStartedAndRun () |
Private Member Functions | |
bool | Remove (TickSample *sample) |
int | Succ (int index) |
Private Attributes | |
Isolate * | isolate_ |
TickSample | buffer_ [kBufferSize] |
int | head_ |
int | tail_ |
bool | overflow_ |
base::Semaphore | buffer_semaphore_ |
bool | engaged_ |
bool | running_ |
bool | paused_ |
Static Private Attributes | |
static const int | kBufferSize = 128 |
Additional Inherited Members | |
![]() | |
typedef int32_t | LocalStorageKey |
![]() | |
static LocalStorageKey | CreateThreadLocalKey () |
static void | DeleteThreadLocalKey (LocalStorageKey key) |
static void * | GetThreadLocal (LocalStorageKey key) |
static int | GetThreadLocalInt (LocalStorageKey key) |
static void | SetThreadLocal (LocalStorageKey key, void *value) |
static void | SetThreadLocalInt (LocalStorageKey key, int value) |
static bool | HasThreadLocal (LocalStorageKey key) |
static void * | GetExistingThreadLocal (LocalStorageKey key) |
static void | YieldCPU () |
![]() | |
static const int | kMaxThreadNameLength = 16 |
|
explicit |
Definition at line 696 of file log.cc.
void v8::internal::Profiler::Disengage | ( | ) |
Definition at line 731 of file log.cc.
References v8::internal::Ticker::ClearProfiler(), engaged_, Insert(), isolate_, v8::base::Thread::Join(), LOG, v8::internal::Isolate::logger(), resume(), running_, and v8::internal::Logger::ticker_.
Referenced by v8::internal::Logger::TearDown().
void v8::internal::Profiler::Engage | ( | ) |
Definition at line 708 of file log.cc.
References engaged_, v8::base::OS::GetSharedLibraryAddresses(), isolate_, LOG, v8::internal::Isolate::logger(), v8::internal::Logger::ProfilerBeginEvent(), running_, v8::internal::Ticker::SetProfiler(), v8::base::Thread::Start(), and v8::internal::Logger::ticker_.
Referenced by v8::internal::Logger::SetUp().
|
inline |
Definition at line 604 of file log.cc.
References buffer_, buffer_semaphore_, head_, overflow_, paused_, Succ(), and tail_.
Referenced by Disengage(), and v8::internal::Ticker::Tick().
|
inline |
Definition at line 620 of file log.cc.
References paused_.
Referenced by v8::internal::Logger::StopProfiler().
|
inlineprivate |
|
inline |
Definition at line 621 of file log.cc.
References paused_.
Referenced by Disengage().
|
virtual |
Implements v8::base::Thread.
Definition at line 751 of file log.cc.
References isolate_, LOG, v8::internal::overflow, Remove(), and running_.
Definition at line 635 of file log.cc.
References kBufferSize.
Referenced by Insert(), and Remove().
|
private |
|
private |
|
private |
Definition at line 649 of file log.cc.
Referenced by Disengage(), and Engage().
|
private |
|
private |
Definition at line 637 of file log.cc.
Referenced by Disengage(), Engage(), and Run().
|
staticprivate |
|
private |
|
private |
|
private |
Definition at line 652 of file log.cc.
Referenced by Disengage(), Engage(), and Run().
|
private |