(2012/11/10 3:26), Roger Pack wrote:
> 
> https://github.com/rdp/ruby-prof/blob/master/ext/ruby_prof/rp_method.c#L101

Thanks.

> Should I define ID_ALLOCATOR myself?
> That would work.

If there is no problem, please patch it.

Thoughts:

(1) ID_ALLOCATOR is common or not?

  if ID_ALLOCATOR is used in many gems then
    we need to consider about adding ID_ALLOCATOR
  elsif
    it is easy to modify ruby-prof directly
  end

(2) My recommendation

#ifdef ID_ALLOCATOR
    if (mid == ID_ALLOCATOR)
        result = rb_str_new2("allocate");
    else
#endif
    if (mid == 0)
        result = rb_str_new2("[No method]");
    else
        result = rb_String(ID2SYM(mid));

-- 
// SASADA Koichi at atdot dot net