Method: RubyProf::CallInfo#children

Defined in:
ext/ruby_prof/rp_call_info.c

#childrenHash

Returns an array of call info objects of methods that this method called (ie, children).

Returns:

  • (Hash)


308
309
310
311
312
313
314
315
316
317
318
# File 'ext/ruby_prof/rp_call_info.c', line 308

static VALUE
prof_call_info_children(VALUE self)
{
    prof_call_info_t *call_info = prof_get_call_info(self);
    if (call_info->children == Qnil)
    {
      call_info->children = rb_ary_new();
      st_foreach(call_info->call_infos, prof_call_info_collect_children, call_info->children);
    }
    return call_info->children;
}