|
V8 Project
|
Inheritance diagram for v8::internal::Profiler:
Collaboration diagram for v8::internal::Profiler:Public Member Functions | |
| Profiler (Isolate *isolate) | |
| void | Engage () |
| void | Disengage () |
| void | Insert (TickSample *sample) |
| virtual void | Run () |
| void | pause () |
| void | resume () |
Public Member Functions inherited from v8::base::Thread | |
| 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 | |
Public Types inherited from v8::base::Thread | |
| typedef int32_t | LocalStorageKey |
Static Public Member Functions inherited from v8::base::Thread | |
| 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 Public Attributes inherited from v8::base::Thread | |
| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 620 of file log.cc.
References paused_.
Referenced by v8::internal::Logger::StopProfiler().
Here is the caller graph for this function:
|
inlineprivate |
|
inline |
Definition at line 621 of file log.cc.
References paused_.
Referenced by Disengage().
Here is the caller graph for this function:
|
virtual |
Implements v8::base::Thread.
Definition at line 751 of file log.cc.
References isolate_, LOG, v8::internal::overflow, Remove(), and running_.
Here is the call graph for this function:Definition at line 635 of file log.cc.
References kBufferSize.
Referenced by Insert(), and Remove().
Here is the caller graph for this function:
|
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 |