v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::Profiler Class Reference
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)
 
void Run () override
 
- Public Member Functions inherited from v8::base::Thread
 Thread (const Options &options)
 
 Thread (const Thread &)=delete
 
Threadoperator= (const Thread &)=delete
 
virtual ~Thread ()
 
V8_WARN_UNUSED_RESULT bool Start ()
 
bool StartSynchronously ()
 
void Join ()
 
const char * name () const
 
PlatformDatadata ()
 
Priority priority () const
 
void NotifyStartedAndRun ()
 

Private Member Functions

bool Remove (TickSample *sample)
 
int Succ (int index)
 

Private Attributes

Isolateisolate_
 
TickSample buffer_ [kBufferSize]
 
int head_
 
base::Atomic32 tail_
 
base::Atomic32 overflow_
 
base::Semaphore buffer_semaphore_
 
base::Atomic32 running_
 

Static Private Attributes

static const int kBufferSize = 128
 

Additional Inherited Members

- Public Types inherited from v8::base::Thread
enum class  Priority { kBestEffort , kUserVisible , kUserBlocking , kDefault }
 
using LocalStorageKey = int32_t
 
- Static Public Member Functions inherited from v8::base::Thread
static LocalStorageKey CreateThreadLocalKey ()
 
static void DeleteThreadLocalKey (LocalStorageKey key)
 
static void * GetThreadLocal (LocalStorageKey key)
 
static void SetThreadLocal (LocalStorageKey key, void *value)
 
static bool HasThreadLocal (LocalStorageKey key)
 
static void * GetExistingThreadLocal (LocalStorageKey key)
 
- Static Public Attributes inherited from v8::base::Thread
static const int kMaxThreadNameLength = 16
 

Detailed Description

Definition at line 1064 of file log.cc.

Constructor & Destructor Documentation

◆ Profiler()

v8::internal::Profiler::Profiler ( Isolate * isolate)
explicit

Definition at line 1167 of file log.cc.

Here is the call graph for this function:

Member Function Documentation

◆ Disengage()

void v8::internal::Profiler::Disengage ( )

Definition at line 1197 of file log.cc.

Here is the call graph for this function:

◆ Engage()

void v8::internal::Profiler::Engage ( )

Definition at line 1177 of file log.cc.

Here is the call graph for this function:

◆ Insert()

void v8::internal::Profiler::Insert ( TickSample * sample)
inline

Definition at line 1071 of file log.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Remove()

bool v8::internal::Profiler::Remove ( TickSample * sample)
inlineprivate

Definition at line 1085 of file log.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Run()

void v8::internal::Profiler::Run ( )
overridevirtual

Implements v8::base::Thread.

Definition at line 1212 of file log.cc.

Here is the call graph for this function:

◆ Succ()

int v8::internal::Profiler::Succ ( int index)
inlineprivate

Definition at line 1096 of file log.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ buffer_

TickSample v8::internal::Profiler::buffer_[kBufferSize]
private

Definition at line 1102 of file log.cc.

◆ buffer_semaphore_

base::Semaphore v8::internal::Profiler::buffer_semaphore_
private

Definition at line 1107 of file log.cc.

◆ head_

int v8::internal::Profiler::head_
private

Definition at line 1103 of file log.cc.

◆ isolate_

Isolate* v8::internal::Profiler::isolate_
private

Definition at line 1098 of file log.cc.

◆ kBufferSize

const int v8::internal::Profiler::kBufferSize = 128
staticprivate

Definition at line 1101 of file log.cc.

◆ overflow_

base::Atomic32 v8::internal::Profiler::overflow_
private

Definition at line 1105 of file log.cc.

◆ running_

base::Atomic32 v8::internal::Profiler::running_
private

Definition at line 1110 of file log.cc.

◆ tail_

base::Atomic32 v8::internal::Profiler::tail_
private

Definition at line 1104 of file log.cc.


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