Ruby
2.5.0dev(2017-10-22revision60238)
|
Go to the source code of this file.
Typedefs | |
typedef struct rb_debug_inspector_struct | rb_debug_inspector_t |
typedef VALUE(* | rb_debug_inspector_func_t) (const rb_debug_inspector_t *, void *) |
typedef struct rb_trace_arg_struct | rb_trace_arg_t |
typedef void(* | rb_postponed_job_func_t) (void *arg) |
Enumerations | |
enum | rb_event_hook_flag_t { RUBY_EVENT_HOOK_FLAG_SAFE = 0x01, RUBY_EVENT_HOOK_FLAG_DELETED = 0x02, RUBY_EVENT_HOOK_FLAG_RAW_ARG = 0x04 } |
typedef VALUE(* rb_debug_inspector_func_t) (const rb_debug_inspector_t *, void *) |
typedef struct rb_debug_inspector_struct rb_debug_inspector_t |
typedef struct rb_trace_arg_struct rb_trace_arg_t |
enum rb_event_hook_flag_t |
void rb_add_event_hook | ( | rb_event_hook_func_t | func, |
rb_event_flag_t | events, | ||
VALUE | data | ||
) |
Definition at line 135 of file vm_trace.c.
void rb_add_event_hook2 | ( | rb_event_hook_func_t | func, |
rb_event_flag_t | events, | ||
VALUE | data, | ||
rb_event_hook_flag_t | hook_flag | ||
) |
Definition at line 148 of file vm_trace.c.
Referenced by rb_set_coverages().
VALUE rb_debug_inspector_backtrace_locations | ( | const rb_debug_inspector_t * | dc | ) |
Definition at line 1240 of file vm_backtrace.c.
References rb_debug_inspector_struct::backtrace.
VALUE rb_debug_inspector_frame_binding_get | ( | const rb_debug_inspector_t * | dc, |
long | index | ||
) |
Definition at line 1224 of file vm_backtrace.c.
VALUE rb_debug_inspector_frame_class_get | ( | const rb_debug_inspector_t * | dc, |
long | index | ||
) |
Definition at line 1217 of file vm_backtrace.c.
VALUE rb_debug_inspector_frame_iseq_get | ( | const rb_debug_inspector_t * | dc, |
long | index | ||
) |
Definition at line 1231 of file vm_backtrace.c.
VALUE rb_debug_inspector_frame_self_get | ( | const rb_debug_inspector_t * | dc, |
long | index | ||
) |
Definition at line 1210 of file vm_backtrace.c.
VALUE rb_debug_inspector_open | ( | rb_debug_inspector_func_t | func, |
void * | data | ||
) |
Definition at line 1172 of file vm_backtrace.c.
References GET_THREAD, and MAYBE_UNUSED.
int rb_postponed_job_register | ( | unsigned int | flags, |
rb_postponed_job_func_t | func, | ||
void * | data | ||
) |
Definition at line 1551 of file vm_trace.c.
References GET_THREAD, and rb_thread_struct::vm.
int rb_postponed_job_register_one | ( | unsigned int | flags, |
rb_postponed_job_func_t | func, | ||
void * | data | ||
) |
Definition at line 1567 of file vm_trace.c.
References rb_postponed_job_struct::func, GET_THREAD, rb_vm_struct::postponed_job_buffer, rb_vm_struct::postponed_job_index, RUBY_VM_SET_POSTPONED_JOB_INTERRUPT, and rb_thread_struct::vm.
Definition at line 1313 of file vm_backtrace.c.
References rb_backtrace_location_struct::iseq.
Definition at line 1327 of file vm_backtrace.c.
References rb_backtrace_location_struct::iseq.
Referenced by rb_profile_frame_full_label().
Definition at line 1356 of file vm_backtrace.c.
Definition at line 1334 of file vm_backtrace.c.
References rb_backtrace_location_struct::iseq.
Definition at line 1419 of file vm_backtrace.c.
References NIL_P, PRIsVALUE, rb_long2int, rb_profile_frame_base_label(), rb_profile_frame_label(), rb_profile_frame_qualified_method_name(), rb_sprintf(), RSTRING_LEN, and RSTRING_PTR.
Definition at line 1320 of file vm_backtrace.c.
References rb_backtrace_location_struct::iseq.
Referenced by rb_profile_frame_full_label().
Definition at line 1390 of file vm_backtrace.c.
References rb_backtrace_location_struct::iseq.
Definition at line 1306 of file vm_backtrace.c.
References rb_backtrace_location_struct::iseq.
Definition at line 1397 of file vm_backtrace.c.
Referenced by rb_profile_frame_full_label().
Definition at line 1377 of file vm_backtrace.c.
RUBY_SYMBOL_EXPORT_BEGIN int rb_profile_frames | ( | int | start, |
int | limit, | ||
VALUE * | buff, | ||
int * | lines | ||
) |
Definition at line 1246 of file vm_backtrace.c.
References rb_execution_context_struct::cfp, rb_callable_method_entry_struct::def, rb_thread_struct::ec, GET_THREAD, rb_control_frame_struct::iseq, rb_control_frame_struct::pc, rb_vm_frame_method_entry(), RUBY_VM_END_CONTROL_FRAME, and VM_METHOD_TYPE_ISEQ.
int rb_remove_event_hook | ( | rb_event_hook_func_t | func | ) |
Definition at line 194 of file vm_trace.c.
int rb_remove_event_hook_with_data | ( | rb_event_hook_func_t | func, |
VALUE | data | ||
) |
Definition at line 200 of file vm_trace.c.
void rb_thread_add_event_hook | ( | VALUE | thval, |
rb_event_hook_func_t | func, | ||
rb_event_flag_t | events, | ||
VALUE | data | ||
) |
Definition at line 129 of file vm_trace.c.
void rb_thread_add_event_hook2 | ( | VALUE | thval, |
rb_event_hook_func_t | func, | ||
rb_event_flag_t | events, | ||
VALUE | data, | ||
rb_event_hook_flag_t | hook_flag | ||
) |
Definition at line 142 of file vm_trace.c.
int rb_thread_remove_event_hook | ( | VALUE | thval, |
rb_event_hook_func_t | func | ||
) |
Definition at line 182 of file vm_trace.c.
int rb_thread_remove_event_hook_with_data | ( | VALUE | thval, |
rb_event_hook_func_t | func, | ||
VALUE | data | ||
) |
Definition at line 188 of file vm_trace.c.
VALUE rb_tracearg_binding | ( | rb_trace_arg_t * | trace_arg | ) |
Definition at line 807 of file vm_trace.c.
References rb_trace_arg_struct::cfp, Qnil, rb_vm_get_binding_creatable_next_cfp(), rb_vm_make_binding(), and rb_trace_arg_struct::th.
VALUE rb_tracearg_defined_class | ( | rb_trace_arg_t * | trace_arg | ) |
Definition at line 800 of file vm_trace.c.
VALUE rb_tracearg_event | ( | rb_trace_arg_t * | trace_arg | ) |
Definition at line 729 of file vm_trace.c.
References ID2SYM.
rb_event_flag_t rb_tracearg_event_flag | ( | rb_trace_arg_t * | trace_arg | ) |
Definition at line 723 of file vm_trace.c.
References rb_trace_arg_struct::event.
rb_trace_arg_t* rb_tracearg_from_tracepoint | ( | VALUE | tpval | ) |
Definition at line 717 of file vm_trace.c.
VALUE rb_tracearg_lineno | ( | rb_trace_arg_t * | trace_arg | ) |
Definition at line 752 of file vm_trace.c.
VALUE rb_tracearg_method_id | ( | rb_trace_arg_t * | trace_arg | ) |
Definition at line 786 of file vm_trace.c.
VALUE rb_tracearg_object | ( | rb_trace_arg_t * | trace_arg | ) |
Definition at line 857 of file vm_trace.c.
References rb_trace_arg_struct::data, rb_trace_arg_struct::event, Qundef, rb_bug(), rb_eRuntimeError, rb_raise(), RUBY_INTERNAL_EVENT_FREEOBJ, and RUBY_INTERNAL_EVENT_NEWOBJ.
VALUE rb_tracearg_path | ( | rb_trace_arg_t * | trace_arg | ) |
Definition at line 758 of file vm_trace.c.
VALUE rb_tracearg_raised_exception | ( | rb_trace_arg_t * | trace_arg | ) |
Definition at line 842 of file vm_trace.c.
References rb_trace_arg_struct::data, rb_trace_arg_struct::event, Qundef, rb_bug(), rb_eRuntimeError, rb_raise(), and RUBY_EVENT_RAISE.
VALUE rb_tracearg_return_value | ( | rb_trace_arg_t * | trace_arg | ) |
Definition at line 827 of file vm_trace.c.
References rb_trace_arg_struct::data, rb_trace_arg_struct::event, Qundef, rb_bug(), rb_eRuntimeError, rb_raise(), RUBY_EVENT_B_RETURN, RUBY_EVENT_C_RETURN, and RUBY_EVENT_RETURN.
VALUE rb_tracearg_self | ( | rb_trace_arg_t * | trace_arg | ) |
Definition at line 821 of file vm_trace.c.
References rb_trace_arg_struct::self.
Definition at line 1030 of file vm_trace.c.
Definition at line 1011 of file vm_trace.c.
Definition at line 1158 of file vm_trace.c.
VALUE rb_tracepoint_new | ( | VALUE | target_thread_not_supported_yet, |
rb_event_flag_t | events, | ||
void(*)(VALUE, void *) | func, | ||
void * | data | ||
) |
Definition at line 1211 of file vm_trace.c.