On Thu, Nov 8, 2012 at 8:40 PM, Yusuke Endoh <mame / tsg.ne.jp> wrote:

> Hello Roger,
>
> 2012/11/9, Roger Pack <rogerdpack2 / gmail.com>:
> > Anyway, I used to use this code in the ruby-prof gem to see a method is
> the
> > allocator:
> >
> > if (method_id =3D=3D ID_ALLOCATOR)
> >
> >         result =3D rb_str_new2("allocate");
> >
> >
> > This fails to compile with 2.0 however:
> >
> > rp_method.c:101: error: =91ID_ALLOCATOR=92 undeclared (first use in thi=
s
> > function)
>
> It looks deleted at r36925, for a refactoring (?) of #6993.
>
> It is easy to add the macro ID_ALLOCATOR, but the commit may affect
> ruby-prof in more essential way.  For example, set_trace_func does
> not hook a call to #allocate method. (Note that I could be wrong;
> I just read #6993 and I don't read that commit itself.)  Is this a
> matter for ruby-prof?
>

It does seem that it is useful in today's ruby-prof for 1.9.x


>
> Anyway I'll reopen #6993 and ask ko1 and nobu.  Thank you,
>

Thanks!
-roger-