When profiling a recursive function like DBmysql::quoteName the duration for each section was being aggregated resulting in double-counting the durations. Only the top-level section should be counted in the final aggregate event as it would represent the total time spent.
When profiling a recursive function like
DBmysql::quoteName
the duration for each section was being aggregated resulting in double-counting the durations. Only the top-level section should be counted in the final aggregate event as it would represent the total time spent.