ext/ruby_prof.c
static VALUE
prof_method_parents(VALUE self)
{
    /* Returns an array of call info objects for this
       method's callers (the methods this method called). */

    VALUE children = rb_ary_new();
    prof_method_t *result = get_prof_method(self);
    st_foreach(result->parents, prof_method_collect_call_infos, children);
    return children;
}
/* call-seq:
   children -> hash

Returns an array of call info objects of methods that this method 
was called by (ie, parents).*/
call-seq:
children -> hash

Returns an array of call info objects of methods that this method
was called by .
call - seq : children - > hash Returns an array of call info objects of methods that this method was called by .
static VALUE
prof_method_parents(VALUE self)
{
    VALUE children = rb_ary_new();
    prof_method_t *result = get_prof_method(self);
    st_foreach(result->parents, prof_method_collect_call_infos, children);
    return children;
}
static VALUE prof_method_parents ( VALUE self ) { VALUE children = rb_ary_new ( ) ; prof_method_t * result = get_prof_method ( self ) ; st_foreach ( result -> parents , prof_method_collect_call_infos , children ) ; return children ; }
call-seq:
children -> hash
call - seq : children - > hash
/* Returns an array of call info objects for this
       method's callers (the methods this method called). */