v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Profiler Class Reference
Inheritance diagram for Profiler:
Collaboration diagram for Profiler:

Public Member Functions

 Profiler (Isolate *isolate)
 
void Engage ()
 
void Disengage ()
 
void Insert (TickSample *sample)
 
bool Remove (TickSample *sample)
 
void Run ()
 
bool paused () const
 
void pause ()
 
void resume ()
 
- Public Member Functions inherited from Thread
 Thread (const Options &options)
 
virtual ~Thread ()
 
void Start ()
 
void Join ()
 
const char * name () const
 
PlatformDatadata ()
 

Additional Inherited Members

- Public Types inherited from Thread
enum  LocalStorageKey { LOCAL_STORAGE_KEY_MIN_VALUE = kMinInt, LOCAL_STORAGE_KEY_MAX_VALUE = kMaxInt }
 
- Static Public Member Functions inherited from 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 Thread
static const int kMaxThreadNameLength = 16
 

Detailed Description

Definition at line 83 of file log.cc.

Constructor & Destructor Documentation

Profiler ( Isolate isolate)
explicit

Definition at line 269 of file log.cc.

Member Function Documentation

void Disengage ( )

Definition at line 303 of file log.cc.

References Profiler::Insert(), ISOLATE, Thread::Join(), LOG, LOGGER, Profiler::resume(), and sample.

Referenced by Logger::TearDown().

void Engage ( )

Definition at line 282 of file log.cc.

References LOGGER, OS::LogSharedLibraryAddresses(), and Thread::Start().

Referenced by Logger::ResumeProfiler(), and Logger::SetUp().

void Insert ( TickSample sample)
inline

Definition at line 90 of file log.cc.

References sample, and Semaphore::Signal().

Referenced by Profiler::Disengage(), and Ticker::Tick().

void pause ( )
inline

Definition at line 117 of file log.cc.

Referenced by Logger::PauseProfiler(), and Logger::SetUp().

bool paused ( ) const
inline

Definition at line 116 of file log.cc.

Referenced by Logger::IsProfilerPaused().

bool Remove ( TickSample sample)
inline

Definition at line 104 of file log.cc.

References Semaphore::Wait().

Referenced by Profiler::Run().

void resume ( )
inline

Definition at line 118 of file log.cc.

Referenced by Profiler::Disengage(), and Logger::ResumeProfiler().

void Run ( )
virtual

Implements Thread.

Definition at line 323 of file log.cc.

References LOG, v8::internal::overflow, Profiler::Remove(), and sample.


The documentation for this class was generated from the following file: