#include <tick-sample.h>
Definition at line 18 of file tick-sample.h.
◆ RecordCEntryFrame
| Enumerator |
|---|
| kIncludeCEntryFrame | |
| kSkipCEntryFrame | |
Definition at line 22 of file tick-sample.h.
◆ TickSample()
| v8::internal::TickSample::TickSample |
( |
| ) |
|
|
inline |
◆ GetStackSample()
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. |
| out_state | Output parameter. If non-nullptr pointer is provided, and the execution is currently in a fast API call, records StateTag::EXTERNAL to it. The caller could then use this as a marker to not take into account the actual VM state recorded in |sample_info|. In the case of fast API calls, the VM state must be EXTERNAL, as the callback is always an external C++ function. |
| 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.
Definition at line 219 of file tick-sample.cc.
◆ Init()
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. |
Definition at line 164 of file tick-sample.cc.
◆ print()
| void v8::internal::TickSample::print |
( |
| ) |
const |
◆ [union]
◆ context
| void* v8::internal::TickSample::context = nullptr |
◆ embedder_context
| void* v8::internal::TickSample::embedder_context = nullptr |
◆ embedder_state
◆ external_callback_entry
| void* v8::internal::TickSample::external_callback_entry = nullptr |
◆ frames_count
| uint16_t v8::internal::TickSample::frames_count = 0 |
◆ has_external_callback
| bool v8::internal::TickSample::has_external_callback = false |
◆ kMaxFramesCount
◆ kMaxFramesCountLog2
| unsigned v8::internal::TickSample::kMaxFramesCountLog2 = 8 |
|
staticconstexpr |
◆ pc
| void* v8::internal::TickSample::pc = nullptr |
◆ sampling_interval_
◆ stack
◆ state
◆ timestamp
◆ tos
| void* v8::internal::TickSample::tos |
◆ trace_id_
| std::optional<uint64_t> v8::internal::TickSample::trace_id_ |
◆ update_stats_
| bool v8::internal::TickSample::update_stats_ = true |
The documentation for this struct was generated from the following files: