in reply to Perl profiler

See Devel::DProf or Devel::Profiler.

Update (now that I'm off my phone and back to a real browser): To get a call tree from one of those, use dprofpp -t or dprofpp -T. The lower case -t may be easier to read because repeated function calls are condensed and shown with a repetition count.