# File lib/mini_profiler/timer_struct/request.rb, line 83 def add_child(name) TimerStruct::Request.new(name, @page, self).tap do |timer| self[:children].push(timer) self[:has_children] = true timer[:parent_timing_id] = self[:id] timer[:depth] = self[:depth] + 1 end end