method
trace_object_allocations_start
ruby latest stable - Class:
ObjectSpace
trace_object_allocations_start()public
Starts tracing object allocations.
static VALUE
trace_object_allocations_start(VALUE self)
{
struct traceobj_arg *arg = get_traceobj_arg();
if (arg->running++ > 0) {
/* do nothing */
}
else {
if (arg->newobj_trace == 0) {
arg->newobj_trace = rb_tracepoint_new(0, RUBY_INTERNAL_EVENT_NEWOBJ, newobj_i, arg);
arg->freeobj_trace = rb_tracepoint_new(0, RUBY_INTERNAL_EVENT_FREEOBJ, freeobj_i, arg);
}
rb_tracepoint_enable(arg->newobj_trace);
rb_tracepoint_enable(arg->freeobj_trace);
}
return Qnil;
} Related methods
- Class methods
- _id2ref
- allocation_class_path
- allocation_generation
- allocation_method_id
- allocation_sourcefile
- allocation_sourceline
- count_imemo_objects
- count_nodes
- count_objects
- count_objects_size
- count_symbols
- count_tdata_objects
- define_finalizer
- dump
- dump_all
- each_object
- garbage_collect
- internal_class_of
- internal_super_of
- memsize_of
- memsize_of_all
- reachable_objects_from
- reachable_objects_from_root
- trace_object_allocations
- trace_object_allocations_clear
- trace_object_allocations_debug_start
- trace_object_allocations_start
- trace_object_allocations_stop
- undefine_finalizer