v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::wasm::WasmExecutionTimer Class Reference

#include <wasm-interpreter.h>

Collaboration diagram for v8::internal::wasm::WasmExecutionTimer:

Public Member Functions

 WasmExecutionTimer (Isolate *isolate, bool track_jitless_wasm)
 
V8_INLINE void Start ()
 
V8_INLINE void Stop ()
 
void Terminate ()
 

Private Member Functions

void StartInternal ()
 
void StopInternal ()
 
void BeginInterval (bool start_timer)
 
void EndInterval ()
 
void AddSample (int running_ratio)
 

Private Attributes

Histogramexecute_ratio_histogram_
 
Histogramslow_wasm_histogram_
 
base::ElapsedTimer window_execute_timer_
 
bool window_has_started_
 
base::TimeTicks next_interval_time_
 
base::TimeTicks start_interval_time_
 
base::TimeDelta window_running_time_
 
const base::TimeDelta sample_duration_
 
base::TimeDelta cooldown_interval_
 
const int slow_threshold_
 
const size_t slow_threshold_samples_count_
 
std::vector< int > samples_
 
Isolateisolate_
 

Static Private Attributes

static const int kMaxPercentValue = 100000
 

Detailed Description

Definition at line 146 of file wasm-interpreter.h.

Constructor & Destructor Documentation

◆ WasmExecutionTimer()

v8::internal::wasm::WasmExecutionTimer::WasmExecutionTimer ( Isolate * isolate,
bool track_jitless_wasm )

Definition at line 216 of file wasm-interpreter.cc.

Here is the call graph for this function:

Member Function Documentation

◆ AddSample()

void v8::internal::wasm::WasmExecutionTimer::AddSample ( int running_ratio)
private

Definition at line 261 of file wasm-interpreter.cc.

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

◆ BeginInterval()

void v8::internal::wasm::WasmExecutionTimer::BeginInterval ( bool start_timer)
private

Definition at line 243 of file wasm-interpreter.cc.

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

◆ EndInterval()

void v8::internal::wasm::WasmExecutionTimer::EndInterval ( )
private

Definition at line 252 of file wasm-interpreter.cc.

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

◆ Start()

V8_INLINE void v8::internal::wasm::WasmExecutionTimer::Start ( )
inline

Definition at line 150 of file wasm-interpreter.h.

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

◆ StartInternal()

void v8::internal::wasm::WasmExecutionTimer::StartInternal ( )
private

Definition at line 297 of file wasm-interpreter.cc.

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

◆ Stop()

V8_INLINE void v8::internal::wasm::WasmExecutionTimer::Stop ( )
inline

Definition at line 154 of file wasm-interpreter.h.

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

◆ StopInternal()

void v8::internal::wasm::WasmExecutionTimer::StopInternal ( )
private

Definition at line 317 of file wasm-interpreter.cc.

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

◆ Terminate()

void v8::internal::wasm::WasmExecutionTimer::Terminate ( )

Definition at line 338 of file wasm-interpreter.cc.

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

Member Data Documentation

◆ cooldown_interval_

base::TimeDelta v8::internal::wasm::WasmExecutionTimer::cooldown_interval_
private

Definition at line 177 of file wasm-interpreter.h.

◆ execute_ratio_histogram_

Histogram* v8::internal::wasm::WasmExecutionTimer::execute_ratio_histogram_
private

Definition at line 169 of file wasm-interpreter.h.

◆ isolate_

Isolate* v8::internal::wasm::WasmExecutionTimer::isolate_
private

Definition at line 181 of file wasm-interpreter.h.

◆ kMaxPercentValue

const int v8::internal::wasm::WasmExecutionTimer::kMaxPercentValue = 100000
staticprivate

Definition at line 183 of file wasm-interpreter.h.

◆ next_interval_time_

base::TimeTicks v8::internal::wasm::WasmExecutionTimer::next_interval_time_
private

Definition at line 173 of file wasm-interpreter.h.

◆ sample_duration_

const base::TimeDelta v8::internal::wasm::WasmExecutionTimer::sample_duration_
private

Definition at line 176 of file wasm-interpreter.h.

◆ samples_

std::vector<int> v8::internal::wasm::WasmExecutionTimer::samples_
private

Definition at line 180 of file wasm-interpreter.h.

◆ slow_threshold_

const int v8::internal::wasm::WasmExecutionTimer::slow_threshold_
private

Definition at line 178 of file wasm-interpreter.h.

◆ slow_threshold_samples_count_

const size_t v8::internal::wasm::WasmExecutionTimer::slow_threshold_samples_count_
private

Definition at line 179 of file wasm-interpreter.h.

◆ slow_wasm_histogram_

Histogram* v8::internal::wasm::WasmExecutionTimer::slow_wasm_histogram_
private

Definition at line 170 of file wasm-interpreter.h.

◆ start_interval_time_

base::TimeTicks v8::internal::wasm::WasmExecutionTimer::start_interval_time_
private

Definition at line 174 of file wasm-interpreter.h.

◆ window_execute_timer_

base::ElapsedTimer v8::internal::wasm::WasmExecutionTimer::window_execute_timer_
private

Definition at line 171 of file wasm-interpreter.h.

◆ window_has_started_

bool v8::internal::wasm::WasmExecutionTimer::window_has_started_
private

Definition at line 172 of file wasm-interpreter.h.

◆ window_running_time_

base::TimeDelta v8::internal::wasm::WasmExecutionTimer::window_running_time_
private

Definition at line 175 of file wasm-interpreter.h.


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