Module: Laplace

Defined in:
ext/laplace/laplace.c

Class Method Summary collapse

Class Method Details

.trace(io) ⇒ Object

Laplace.trace(io) -> tracepoint

Returns tracepoint which outputs method call and return,
and raised exceptions.


144
145
146
147
148
149
# File 'ext/laplace/laplace.c', line 144

static VALUE
lp_trace(VALUE dummy, VALUE io)
{
    rb_event_flag_t events = RUBY_EVENT_CALL|RUBY_EVENT_C_CALL|RUBY_EVENT_RETURN|RUBY_EVENT_C_RETURN|RUBY_EVENT_RAISE;
    return rb_tracepoint_new(Qnil, events, callback, (void *)io);
}