Many profiling tools are log-analyzers! Take a look at the output from Devel::DProf or Devel::Profiler. The file produced is essentially a specially-formated log-file of subroutine entry and exit times. The dprofpp program is a log-analyzer which reads the log and produces summary reports.