|
enum | RecordCEntryFrame { kIncludeCEntryFrame,
kSkipCEntryFrame
} |
|
|
void | Init (Isolate *isolate, const v8::RegisterState &state, RecordCEntryFrame record_c_entry_frame, bool update_stats, bool use_simulator_reg_state=true) |
|
|
StateTag | state |
|
void * | pc |
|
union { |
void * tos |
|
void * external_callback_entry |
|
}; | |
|
void * | stack [kMaxFramesCount] |
|
unsigned | frames_count: kMaxFramesCountLog2 |
|
bool | has_external_callback: 1 |
|
bool | update_stats: 1 |
|
|
static const unsigned | kMaxFramesCountLog2 = 8 |
|
static const unsigned | kMaxFramesCount = (1 << kMaxFramesCountLog2) - 1 |
|
◆ GetStackSample()
static bool v8::TickSample::GetStackSample |
( |
Isolate * |
isolate, |
|
|
v8::RegisterState * |
state, |
|
|
RecordCEntryFrame |
record_c_entry_frame, |
|
|
void ** |
frames, |
|
|
size_t |
frames_limit, |
|
|
v8::SampleInfo * |
sample_info, |
|
|
bool |
use_simulator_reg_state = true |
|
) |
| |
|
static |
Get a call stack sample from the isolate.
- Parameters
-
isolate | The isolate. |
state | Register state. |
record_c_entry_frame | Include or skip the runtime function. |
frames | Caller allocated buffer to store stack frames. |
frames_limit | Maximum number of frames to capture. The buffer must be large enough to hold the number of frames. |
sample_info | The sample info is filled up by the function provides number of actual captured stack frames and the current VM state. |
use_simulator_reg_state | When set to true and V8 is running under a simulator, the method will use the simulator register state rather than the one provided with |state| argument. Otherwise the method will use provided register |state| as is. |
- Note
- GetStackSample is thread and signal safe and should only be called when the JS thread is paused or interrupted. Otherwise the behavior is undefined.
◆ Init()
void v8::TickSample::Init |
( |
Isolate * |
isolate, |
|
|
const v8::RegisterState & |
state, |
|
|
RecordCEntryFrame |
record_c_entry_frame, |
|
|
bool |
update_stats, |
|
|
bool |
use_simulator_reg_state = true |
|
) |
| |
Initialize a tick sample from the isolate.
- Parameters
-
isolate | The isolate. |
state | Execution state. |
record_c_entry_frame | Include or skip the runtime function. |
update_stats | Whether update the sample to the aggregated stats. |
use_simulator_reg_state | When set to true and V8 is running under a simulator, the method will use the simulator register state rather than the one provided with |state| argument. Otherwise the method will use provided register |state| as is. |
The documentation for this struct was generated from the following file: